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

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

Introduction

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

Prototype

public String getFileDos() 

Source Link

Document

This will get the name representing a Dos 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;//from   www .  j a  v  a 2 s  .  c o  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;//from  w  w w.  jav a 2 s. c  o  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);
}