private void processDoc(String name, String annotationType, PDFileSpecification spec,
                            AttributesImpl attributes)
            throws TikaException, SAXException, IOException {
        if (spec == null) {
            return;
        }
        if (extractedFiles.contains(spec.getCOSObject())) {
            return;
        }
        if (spec instanceof PDSimpleFileSpecification) {
            //((PDSimpleFileSpecification)spec).getFile();
            attributes.addAttribute("", "class", "class", "CDATA", "linked");
            attributes.addAttribute("", "id", "id", "CDATA", spec.getFile());
            xhtml.startElement("div", attributes);
            xhtml.endElement("div");
        } else if (spec instanceof PDComplexFileSpecification) {
            if (attributes.getIndex("source") < 0) {
                attributes.addAttribute("", "source", "source", "CDATA", "attachment");
            }
            extractMultiOSPDEmbeddedFiles(name, annotationType, (PDComplexFileSpecification) spec,
                    attributes);
        }
    }
Format used for signature dates
TODO Make this thread-safe
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-pdf-module/src/main/java/org/apache/tika/parser/pdf/AbstractPDF2XHTML.java