/** * This will set the document information for this document. * * @param info The updated document information. */ public void setDocumentInformation(PDDocumentInformation info) { documentInformation = info; document.getTrailer().setItem(COSName.INFO, info.getCOSObject()); }
COSBase item = dico.getCOSObject().getItem(COSName.MOD_DATE); if (modifyDate != null && isValidPDFDateFormat(item))
COSBase item = dico.getCOSObject().getItem(COSName.CREATION_DATE); if (creationDate != null && isValidPDFDateFormat(item))
@Override public boolean isNeedToBeUpdated() { return this.info.getCOSObject().isNeedToBeUpdated(); }
@Override public void setNeedToBeUpdated(boolean needToBeUpdated) { this.info.getCOSObject().setNeedToBeUpdated(needToBeUpdated); }
for (COSName key : info.getCOSObject().keySet()) { String name = key.getName(); if (!handledMetadata.contains(name)) { addMetadata(metadata, name, info.getCOSObject().getDictionaryObject(key)); addMetadata(metadata, PDF.PDF_DOC_INFO_CUSTOM_PREFIX + name, info.getCOSObject().getDictionaryObject(key));
/** * This will set the document information for this document. * * @param info The updated document information. */ public void setDocumentInformation(PDDocumentInformation info) { documentInformation = info; document.getTrailer().setItem(COSName.INFO, info.getCOSObject()); }
@Override public String getCreationDate() { COSBase modDate = this.info.getCOSObject().getDictionaryObject(COSName.CREATION_DATE); return modDate instanceof COSString ? ((COSString) modDate).getString() : null; }
/** * This will set the document information for this document. * * @param info The updated document information. */ public void setDocumentInformation(PDDocumentInformation info) { documentInformation = info; document.getTrailer().setItem(COSName.INFO, info.getCOSObject()); }
@Override public String getModificationDate() { COSBase modDate = this.info.getCOSObject().getDictionaryObject(COSName.MOD_DATE); return modDate instanceof COSString ? ((COSString) modDate).getString() : null; }
@Override public void setCreationDate(String creationDate) { this.info.getCOSObject().setString(COSName.CREATION_DATE, DateConverter.toPDFFormat(creationDate)); }
@Override public void setModificationDate(String modificationDate) { this.info.getCOSObject().setString(COSName.MOD_DATE, DateConverter.toPDFFormat(modificationDate)); }
mergeInto(srcInfo.getCOSObject(), destInfo.getCOSObject(), Collections.<COSName>emptySet());
COSBase item = dico.getCOSObject().getItem(COSName.CREATION_DATE); if (creationDate != null && isValidPDFDateFormat(item))
COSBase item = dico.getCOSObject().getItem(COSName.MOD_DATE); if (modifyDate != null && isValidPDFDateFormat(item))
COSBase item = dico.getCOSObject().getItem(COSName.CREATION_DATE); if (creationDate != null && isValidPDFDateFormat(item))
COSBase item = dico.getCOSObject().getItem(COSName.MOD_DATE); if (modifyDate != null && isValidPDFDateFormat(item))
"Keywords", "Producer", "Subject", "Title", "Trapped" }); if (info.getCOSObject() != null && info.getCOSObject().keySet() != null) { for (COSName key : info.getCOSObject().keySet()) { String name = key.getName(); if(! handledMetadata.contains(name)) { addMetadata(metadata, name, info.getCOSObject().getDictionaryObject(key));
"Keywords", "Producer", "Subject", "Title", "Trapped" }); if (info.getCOSObject() != null && info.getCOSObject().keySet() != null) { for (COSName key : info.getCOSObject().keySet()) { String name = key.getName(); if(! handledMetadata.contains(name)) { addMetadata(metadata, name, info.getCOSObject().getDictionaryObject(key));
for (COSName key : info.getCOSObject().keySet()) { String name = key.getName(); if (!handledMetadata.contains(name)) { addMetadata(metadata, name, info.getCOSObject().getDictionaryObject(key)); addMetadata(metadata, PDF.PDF_DOC_INFO_CUSTOM_PREFIX + name, info.getCOSObject().getDictionaryObject(key));