Example usage for org.apache.pdfbox.pdmodel.common.filespecification PDComplexFileSpecification getFileUnix

List of usage examples for org.apache.pdfbox.pdmodel.common.filespecification PDComplexFileSpecification getFileUnix

Introduction

In this page you can find the example usage for org.apache.pdfbox.pdmodel.common.filespecification PDComplexFileSpecification getFileUnix.

Prototype

public String getFileUnix() 

Source Link

Document

This will get the name representing a Unix file.

Usage

From source file:org.apache.tika.parser.pdf.AbstractPDF2XHTML.java

License:Apache License

private void extractMultiOSPDEmbeddedFiles(String displayName, PDComplexFileSpecification spec,
        AttributesImpl attributes) throws IOException, SAXException, TikaException {

    if (spec == null) {
        return;/*w w  w  . j  av  a  2s.co m*/
    }
    //current strategy is to pull all, not just first non-null
    extractPDEmbeddedFile(displayName, spec.getFileUnicode(), spec.getFile(), spec.getEmbeddedFile(),
            attributes);
    extractPDEmbeddedFile(displayName, spec.getFileUnicode(), spec.getFileMac(), spec.getEmbeddedFileMac(),
            attributes);
    extractPDEmbeddedFile(displayName, spec.getFileUnicode(), spec.getFileDos(), spec.getEmbeddedFileDos(),
            attributes);
    extractPDEmbeddedFile(displayName, spec.getFileUnicode(), spec.getFileUnix(), spec.getEmbeddedFileUnix(),
            attributes);
}

From source file:org.apache.tika.parser.pdf.EnhancedPDF2XHTML.java

License:Apache License

private void extractMultiOSPDEmbeddedFiles(String defaultName, PDComplexFileSpecification spec,
        EmbeddedDocumentExtractor extractor) throws IOException, SAXException, TikaException {

    if (spec == null) {
        return;/*w  w  w  .  ja  v  a 2 s.  co  m*/
    }
    //current strategy is to pull all, not just first non-null
    extractPDEmbeddedFile(defaultName, spec.getFile(), spec.getEmbeddedFile(), extractor);
    extractPDEmbeddedFile(defaultName, spec.getFileMac(), spec.getEmbeddedFileMac(), extractor);
    extractPDEmbeddedFile(defaultName, spec.getFileDos(), spec.getEmbeddedFileDos(), extractor);
    extractPDEmbeddedFile(defaultName, spec.getFileUnix(), spec.getEmbeddedFileUnix(), extractor);
}