本文整理汇总了Java中com.shockwave.pdfium.PdfiumCore类的典型用法代码示例。如果您正苦于以下问题:Java PdfiumCore类的具体用法?Java PdfiumCore怎么用?Java PdfiumCore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PdfiumCore类属于com.shockwave.pdfium包,在下文中一共展示了PdfiumCore类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: PDFView
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
/**
* Construct the initial view
*/
public PDFView(Context context, AttributeSet set) {
super(context, set);
renderingHandlerThread = new HandlerThread("PDF renderer");
if (isInEditMode()) {
return;
}
cacheManager = new CacheManager();
animationManager = new AnimationManager(this);
dragPinchManager = new DragPinchManager(this, animationManager);
paint = new Paint();
debugPaint = new Paint();
debugPaint.setStyle(Style.STROKE);
pdfiumCore = new PdfiumCore(context);
setWillNotDraw(false);
}
开发者ID:barteksc,项目名称:AndroidPdfViewerV2,代码行数:24,代码来源:PDFView.java
示例2: PDFView
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
/**
* Construct the initial view
*/
public PDFView(Context context, AttributeSet set) {
super(context, set);
if (isInEditMode()) {
return;
}
cacheManager = new CacheManager();
animationManager = new AnimationManager(this);
dragPinchManager = new DragPinchManager(this, animationManager);
paint = new Paint();
debugPaint = new Paint();
debugPaint.setStyle(Style.STROKE);
pdfiumCore = new PdfiumCore(context);
setWillNotDraw(false);
}
开发者ID:bramach5,项目名称:Bala-PdfViewer-with-Voice,代码行数:22,代码来源:PDFView.java
示例3: PDFView
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
/** Construct the initial view */
public PDFView(Context context, AttributeSet set) {
super(context, set);
renderingHandlerThread = new HandlerThread("PDF renderer");
if (isInEditMode()) {
return;
}
cacheManager = new CacheManager();
animationManager = new AnimationManager(this);
dragPinchManager = new DragPinchManager(this, animationManager);
pagesLoader = new PagesLoader(this);
paint = new Paint();
debugPaint = new Paint();
debugPaint.setStyle(Style.STROKE);
pdfiumCore = new PdfiumCore(context);
setWillNotDraw(false);
}
开发者ID:barteksc,项目名称:AndroidPdfViewer,代码行数:23,代码来源:PDFView.java
示例4: DecodingAsyncTask
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
DecodingAsyncTask(DocumentSource docSource, String password, PDFView pdfView, PdfiumCore pdfiumCore, int firstPageIdx) {
this.docSource = docSource;
this.firstPageIdx = firstPageIdx;
this.cancelled = false;
this.pdfView = pdfView;
this.password = password;
this.pdfiumCore = pdfiumCore;
context = pdfView.getContext();
}
开发者ID:barteksc,项目名称:AndroidPdfViewerV2,代码行数:10,代码来源:DecodingAsyncTask.java
示例5: printPdfInfo
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
public void printPdfInfo(final PdfiumCore core, final PdfDocument doc) {
PdfDocument.Meta meta = core.getDocumentMeta(doc);
BookLibApplication.e(LOG_TAG + "title = " + meta.getTitle());
BookLibApplication.e(LOG_TAG + "author = " + meta.getAuthor());
BookLibApplication.e(LOG_TAG + "subject = " + meta.getSubject());
BookLibApplication.e(LOG_TAG + "keywords = " + meta.getKeywords());
BookLibApplication.e(LOG_TAG + "creator = " + meta.getCreator());
BookLibApplication.e(LOG_TAG + "producer = " + meta.getProducer());
BookLibApplication.e(LOG_TAG + "creationDate = " + meta.getCreationDate());
BookLibApplication.e(LOG_TAG + "modDate = " + meta.getModDate());
}
开发者ID:mrspaceman,项目名称:ebookmgr,代码行数:12,代码来源:LibraryScanner.java
示例6: RenderingAsyncTask
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
public RenderingAsyncTask(PDFView pdfView, PdfiumCore pdfiumCore, PdfDocument pdfDocument) {
this.pdfView = pdfView;
this.pdfiumCore = pdfiumCore;
this.pdfDocument = pdfDocument;
this.renderingTasks = Collections.synchronizedList(new ArrayList<RenderingTask>());
}
开发者ID:bramach5,项目名称:Bala-PdfViewer-with-Voice,代码行数:8,代码来源:RenderingAsyncTask.java
示例7: DecodingAsyncTask
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
public DecodingAsyncTask(String path, boolean isAsset, String password, PDFView pdfView, PdfiumCore pdfiumCore) {
this.cancelled = false;
this.pdfView = pdfView;
this.isAsset = isAsset;
this.password = password;
this.pdfiumCore = pdfiumCore;
this.path = path;
context = pdfView.getContext();
}
开发者ID:bramach5,项目名称:Bala-PdfViewer-with-Voice,代码行数:10,代码来源:DecodingAsyncTask.java
示例8: PDFView
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
/**
* Construct the initial view
*/
public PDFView(Context context, AttributeSet set) {
super(context, set);
renderingHandlerThread = new HandlerThread("PDF renderer");
if (isInEditMode()) {
return;
}
miniMapRequired = false;
cacheManager = new CacheManager();
animationManager = new AnimationManager(this);
dragPinchManager = new DragPinchManager(this, animationManager);
paint = new Paint();
debugPaint = new Paint();
debugPaint.setStyle(Style.STROKE);
paintMinimapBack = new Paint();
paintMinimapBack.setStyle(Style.FILL);
paintMinimapBack.setColor(Color.BLACK);
paintMinimapBack.setAlpha(50);
paintMinimapFront = new Paint();
paintMinimapFront.setStyle(Style.FILL);
paintMinimapFront.setColor(Color.BLACK);
paintMinimapFront.setAlpha(50);
// A surface view does not call
// onDraw() as a default but we need it.
setWillNotDraw(false);
pdfiumCore = new PdfiumCore(context);
}
开发者ID:barteksc,项目名称:AndroidPdfViewerV1,代码行数:36,代码来源:PDFView.java
示例9: DecodingAsyncTask
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
public DecodingAsyncTask(DocumentSource docSource, String password, PDFView pdfView, PdfiumCore pdfiumCore) {
this.docSource = docSource;
this.cancelled = false;
this.pdfView = pdfView;
this.password = password;
this.pdfiumCore = pdfiumCore;
context = pdfView.getContext();
}
开发者ID:barteksc,项目名称:AndroidPdfViewerV1,代码行数:9,代码来源:DecodingAsyncTask.java
示例10: PdfFile
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
PdfFile(PdfiumCore pdfiumCore, PdfDocument pdfDocument, FitPolicy pageFitPolicy, Size viewSize, int[] originalUserPages,
boolean isVertical, int spacing) {
this.pdfiumCore = pdfiumCore;
this.pdfDocument = pdfDocument;
this.pageFitPolicy = pageFitPolicy;
this.originalUserPages = originalUserPages;
this.isVertical = isVertical;
this.spacingPx = spacing;
setup(viewSize);
}
开发者ID:barteksc,项目名称:AndroidPdfViewer,代码行数:11,代码来源:PdfFile.java
示例11: DecodingAsyncTask
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
DecodingAsyncTask(DocumentSource docSource, String password, int[] userPages, PDFView pdfView, PdfiumCore pdfiumCore) {
this.docSource = docSource;
this.userPages = userPages;
this.cancelled = false;
this.pdfView = pdfView;
this.password = password;
this.pdfiumCore = pdfiumCore;
}
开发者ID:barteksc,项目名称:AndroidPdfViewer,代码行数:9,代码来源:DecodingAsyncTask.java
示例12: RenderingHandler
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
RenderingHandler(Looper looper, PDFView pdfView, PdfiumCore pdfiumCore, PdfDocument pdfDocument) {
super(looper);
this.pdfView = pdfView;
this.pdfiumCore = pdfiumCore;
this.pdfDocument = pdfDocument;
}
开发者ID:barteksc,项目名称:AndroidPdfViewerV2,代码行数:7,代码来源:RenderingHandler.java
示例13: createDocument
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
@Override
public PdfDocument createDocument(Context context, PdfiumCore core, String password) throws IOException {
ParcelFileDescriptor pfd = context.getContentResolver().openFileDescriptor(uri, "r");
return core.newDocument(pfd, password);
}
开发者ID:barteksc,项目名称:AndroidPdfViewerV2,代码行数:6,代码来源:UriSource.java
示例14: createDocument
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
@Override
public PdfDocument createDocument(Context context, PdfiumCore core, String password) throws IOException {
return core.newDocument(Util.toByteArray(inputStream), password);
}
开发者ID:barteksc,项目名称:AndroidPdfViewerV2,代码行数:5,代码来源:InputStreamSource.java
示例15: createDocument
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
@Override
public PdfDocument createDocument(Context context, PdfiumCore core, String password) throws IOException {
File f = FileUtils.fileFromAsset(context, assetName);
ParcelFileDescriptor pfd = ParcelFileDescriptor.open(f, ParcelFileDescriptor.MODE_READ_ONLY);
return core.newDocument(pfd, password);
}
开发者ID:barteksc,项目名称:AndroidPdfViewerV2,代码行数:7,代码来源:AssetSource.java
示例16: createDocument
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
@Override
public PdfDocument createDocument(Context context, PdfiumCore core, String password) throws IOException {
return core.newDocument(data, password);
}
开发者ID:barteksc,项目名称:AndroidPdfViewerV2,代码行数:5,代码来源:ByteArraySource.java
示例17: createDocument
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
@Override
public PdfDocument createDocument(Context context, PdfiumCore core, String password) throws IOException {
ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);
return core.newDocument(pfd, password);
}
开发者ID:barteksc,项目名称:AndroidPdfViewerV2,代码行数:6,代码来源:FileSource.java
示例18: createDocument
import com.shockwave.pdfium.PdfiumCore; //导入依赖的package包/类
PdfDocument createDocument(Context context, PdfiumCore core, String password) throws IOException;
开发者ID:barteksc,项目名称:AndroidPdfViewerV2,代码行数:2,代码来源:DocumentSource.java
注:本文中的com.shockwave.pdfium.PdfiumCore类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论