/** * Create and add an Adobe PDF schema to this metadata. * * This method return the created schema to enter information * * @return schema added in order to work on it */ public AdobePDFSchema createAndAddAdobePDFSchema() { AdobePDFSchema pdf = new AdobePDFSchema(this); pdf.setAboutAsSimple(""); addSchema(pdf); return pdf; }
/** * Set the PDFVersion * * @param value * Value to set */ public void setPDFVersion(String value) { TextType version; version = createTextType(PDF_VERSION, value); addProperty(version); }
/** * Give the PDF Keywords property * * @return The property object */ public TextType getKeywordsProperty() { AbstractField tmp = getProperty(KEYWORDS); if (tmp instanceof TextType) { return (TextType) tmp; } return null; }
if (pdf != null) display("Keywords:", pdf.getKeywords()); display("PDF Version:", pdf.getPDFVersion()); display("PDF Producer:", pdf.getProducer());
if (pdf != null) if (pdf.getKeywordsProperty() == null) if (!pdf.getKeywords().equals(keyword))
if (pdf != null) if (pdf.getProducerProperty() == null) if (!pdf.getProducer().equals(producer))
/** * Set the PDFVersion * * @param version * Property to set */ public void setPDFVersionProperty(TextType version) { addProperty(version); }
pdfSchema.setKeywords( info.getKeywords() ); pdfSchema.setProducer( info.getProducer() );
pdfSchema.setProducer(information.getProducer());
if (pdf != null) display("Keywords:", pdf.getKeywords()); display("PDF Version:", pdf.getPDFVersion()); display("PDF Producer:", pdf.getProducer());
if (pdf != null) if (pdf.getKeywordsProperty() == null) if (!pdf.getKeywords().equals(keyword))
if (pdf != null) if (pdf.getProducerProperty() == null) if (!pdf.getProducer().equals(producer))
/** * Set the PDFProducer * * @param producer * Property to set */ public void setProducerProperty(TextType producer) { addProperty(producer); }
pdfSchema.setKeywords( info.getKeywords() ); pdfSchema.setProducer( info.getProducer() );
pdfSchema.setProducer(information.getProducer());
/** * Set the PDF keywords * * @param value * Value to set */ public void setKeywords(String value) { TextType keywords; keywords = createTextType(KEYWORDS, value); addProperty(keywords); }
if (pdf != null) if (pdf.getKeywordsProperty() == null) if (!pdf.getKeywords().equals(keyword))
if (pdf != null) if (pdf.getProducerProperty() == null) if (!pdf.getProducer().equals(producer))
/** * Give the PDFVersion property * * @return The property object */ public TextType getPDFVersionProperty() { AbstractField tmp = getProperty(PDF_VERSION); if (tmp instanceof TextType) { return (TextType) tmp; } return null; }
/** * Create and add an Adobe PDF schema to this metadata. * * This method return the created schema to enter information * * @return schema added in order to work on it */ public AdobePDFSchema createAndAddAdobePDFSchema() { AdobePDFSchema pdf = new AdobePDFSchema(this); pdf.setAboutAsSimple(""); addSchema(pdf); return pdf; }