Java Code Examples for com.shockwave.pdfium.PdfDocument#Meta

The following examples show how to use com.shockwave.pdfium.PdfDocument#Meta . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PDFViewActivity.java    From AndroidPdfViewerV2 with Apache License 2.0 5 votes vote down vote up
@Override
public void loadComplete(int nbPages) {
    PdfDocument.Meta meta = pdfView.getDocumentMeta();
    Log.e(TAG, "title = " + meta.getTitle());
    Log.e(TAG, "author = " + meta.getAuthor());
    Log.e(TAG, "subject = " + meta.getSubject());
    Log.e(TAG, "keywords = " + meta.getKeywords());
    Log.e(TAG, "creator = " + meta.getCreator());
    Log.e(TAG, "producer = " + meta.getProducer());
    Log.e(TAG, "creationDate = " + meta.getCreationDate());
    Log.e(TAG, "modDate = " + meta.getModDate());

    printBookmarksTree(pdfView.getTableOfContents(), "-");

}
 
Example 2
Source File: PDFViewActivity.java    From AndroidPdfViewerV1 with Apache License 2.0 5 votes vote down vote up
@Override
public void loadComplete(int nbPages) {
    PdfDocument.Meta meta = pdfView.getDocumentMeta();
    Log.e(TAG, "title = " + meta.getTitle());
    Log.e(TAG, "author = " + meta.getAuthor());
    Log.e(TAG, "subject = " + meta.getSubject());
    Log.e(TAG, "keywords = " + meta.getKeywords());
    Log.e(TAG, "creator = " + meta.getCreator());
    Log.e(TAG, "producer = " + meta.getProducer());
    Log.e(TAG, "creationDate = " + meta.getCreationDate());
    Log.e(TAG, "modDate = " + meta.getModDate());

    printBookmarksTree(pdfView.getTableOfContents(), "-");

}
 
Example 3
Source File: PDFView.java    From AndroidPdfViewer with Apache License 2.0 5 votes vote down vote up
/** Returns null if document is not loaded */
public PdfDocument.Meta getDocumentMeta() {
    if (pdfFile == null) {
        return null;
    }
    return pdfFile.getMetaData();
}
 
Example 4
Source File: PDFViewActivity.java    From AndroidPdfViewer with Apache License 2.0 5 votes vote down vote up
@Override
public void loadComplete(int nbPages) {
    PdfDocument.Meta meta = pdfView.getDocumentMeta();
    Log.e(TAG, "title = " + meta.getTitle());
    Log.e(TAG, "author = " + meta.getAuthor());
    Log.e(TAG, "subject = " + meta.getSubject());
    Log.e(TAG, "keywords = " + meta.getKeywords());
    Log.e(TAG, "creator = " + meta.getCreator());
    Log.e(TAG, "producer = " + meta.getProducer());
    Log.e(TAG, "creationDate = " + meta.getCreationDate());
    Log.e(TAG, "modDate = " + meta.getModDate());

    printBookmarksTree(pdfView.getTableOfContents(), "-");

}
 
Example 5
Source File: PDFView.java    From AndroidPdfViewerV2 with Apache License 2.0 4 votes vote down vote up
public PdfDocument.Meta getDocumentMeta() {
    if (pdfDocument == null) {
        return null;
    }
    return pdfiumCore.getDocumentMeta(pdfDocument);
}
 
Example 6
Source File: PDFView.java    From AndroidPdfViewerV1 with Apache License 2.0 4 votes vote down vote up
public PdfDocument.Meta getDocumentMeta() {
    if (pdfDocument == null) {
        return null;
    }
    return pdfiumCore.getDocumentMeta(pdfDocument);
}
 
Example 7
Source File: PdfFile.java    From AndroidPdfViewer with Apache License 2.0 4 votes vote down vote up
public PdfDocument.Meta getMetaData() {
    if (pdfDocument == null) {
        return null;
    }
    return pdfiumCore.getDocumentMeta(pdfDocument);
}