/** * Sets the optional content properties dictionary. The document version is incremented to 1.5 * if lower. * * @param ocProperties the optional properties dictionary */ public void setOCProperties(PDOptionalContentProperties ocProperties) { root.setItem(COSName.OCPROPERTIES, ocProperties); // optional content groups require PDF 1.5 if (ocProperties != null && document.getVersion() < 1.5) { document.setVersion(1.5f); } } }
float currentVersion = getVersion();
float version = document.getVersion(); if (version < 1.5)
if (doc.getVersion() >= 1.5f && accessPermissions == 0)
/** * Create a new document to write the split contents to. * * @return the newly created PDDocument. * @throws IOException If there is an problem creating the new document. */ protected PDDocument createNewDocument() throws IOException { PDDocument document = memoryUsageSetting == null ? new PDDocument() : new PDDocument(memoryUsageSetting); document.getDocument().setVersion(getSourceDocument().getVersion()); document.setDocumentInformation(getSourceDocument().getDocumentInformation()); document.getDocumentCatalog().setViewerPreferences( getSourceDocument().getDocumentCatalog().getViewerPreferences()); return document; }
if (doc.getVersion() >= 1.5f && accessPermissions == 0)
float pdfVersion = pdfDoc.getVersion(); if (pdfVersion <= 1.4f)
float destVersion = destination.getVersion(); float srcVersion = source.getVersion();
/** * Sets the optional content properties dictionary. The document version is incremented to 1.5 * if lower. * * @param ocProperties the optional properties dictionary */ public void setOCProperties(PDOptionalContentProperties ocProperties) { root.setItem(COSName.OCPROPERTIES, ocProperties); // optional content groups require PDF 1.5 if (ocProperties != null && document.getVersion() < 1.5) { document.setVersion(1.5f); } } }
/** * Sets the optional content properties dictionary. The document version is incremented to 1.5 * if lower. * * @param ocProperties the optional properties dictionary */ public void setOCProperties(PDOptionalContentProperties ocProperties) { root.setItem(COSName.OCPROPERTIES, ocProperties); // optional content groups require PDF 1.5 if (ocProperties != null && document.getVersion() < 1.5) { document.setVersion(1.5f); } } }
float currentVersion = getVersion();
float version = document.getVersion(); if (version < 1.5)
float version = document.getVersion(); if (version < 1.5)
float currentVersion = getVersion();
if (doc.getVersion() >= 1.5f && accessPermissions == 0)
/** * Create a new document to write the split contents to. * * @return the newly created PDDocument. * @throws IOException If there is an problem creating the new document. */ protected PDDocument createNewDocument() throws IOException { PDDocument document = memoryUsageSetting == null ? new PDDocument() : new PDDocument(memoryUsageSetting); document.getDocument().setVersion(getSourceDocument().getVersion()); document.setDocumentInformation(getSourceDocument().getDocumentInformation()); document.getDocumentCatalog().setViewerPreferences( getSourceDocument().getDocumentCatalog().getViewerPreferences()); return document; }
/** * Create a new document to write the split contents to. * * @return the newly created PDDocument. * @throws IOException If there is an problem creating the new document. */ protected PDDocument createNewDocument() throws IOException { PDDocument document = memoryUsageSetting == null ? new PDDocument() : new PDDocument(memoryUsageSetting); document.getDocument().setVersion(getSourceDocument().getVersion()); document.setDocumentInformation(getSourceDocument().getDocumentInformation()); document.getDocumentCatalog().setViewerPreferences( getSourceDocument().getDocumentCatalog().getViewerPreferences()); return document; }
if (doc.getVersion() >= 1.5f && accessPermissions == 0)
float pdfVersion = pdfDoc.getVersion(); if (pdfVersion <= 1.4f)
float pdfVersion = pdfDoc.getVersion(); if (pdfVersion <= 1.4f)