"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java" between
pdfbox-2.0.23-src.zip and pdfbox-2.0.24-src.zip

About: Apache PDFBox is a Java PDF library tool that allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents.

PDDocument.java  (pdfbox-2.0.23-src):PDDocument.java  (pdfbox-2.0.24-src)
skipping to change at line 395 skipping to change at line 395
{ {
acroForm = new PDAcroForm(this); acroForm = new PDAcroForm(this);
catalog.setAcroForm(acroForm); catalog.setAcroForm(acroForm);
} }
else else
{ {
acroForm.getCOSObject().setNeedToBeUpdated(true); acroForm.getCOSObject().setNeedToBeUpdated(true);
} }
PDSignatureField signatureField = null; PDSignatureField signatureField = null;
if (!(acroForm.getCOSObject().getDictionaryObject(COSName.FIELDS) instan COSBase cosFieldBase = acroForm.getCOSObject().getDictionaryObject(COSNa
ceof COSArray)) me.FIELDS);
if (cosFieldBase instanceof COSArray)
{ {
acroForm.getCOSObject().setItem(COSName.FIELDS, new COSArray()); COSArray fieldArray = (COSArray) cosFieldBase;
fieldArray.setNeedToBeUpdated(true);
signatureField = findSignatureField(acroForm.getFieldIterator(), sig
Object);
} }
else else
{ {
COSArray fieldArray = (COSArray) acroForm.getCOSObject().getDictiona acroForm.getCOSObject().setItem(COSName.FIELDS, new COSArray());
ryObject(COSName.FIELDS);
fieldArray.setNeedToBeUpdated(true);
signatureField = findSignatureField(acroForm.getFieldIterator(), sig
Object);
} }
if (signatureField == null) if (signatureField == null)
{ {
signatureField = new PDSignatureField(acroForm); signatureField = new PDSignatureField(acroForm);
// append the signature object // append the signature object
signatureField.setValue(sigObject); signatureField.setValue(sigObject);
// backward linking // backward linking
signatureField.getWidgets().get(0).setPage(page); signatureField.getWidgets().get(0).setPage(page);
} }
else else
skipping to change at line 1688 skipping to change at line 1689
* @param removeAllSecurity remove all security if set to true * @param removeAllSecurity remove all security if set to true
*/ */
public void setAllSecurityToBeRemoved(boolean removeAllSecurity) public void setAllSecurityToBeRemoved(boolean removeAllSecurity)
{ {
allSecurityToBeRemoved = removeAllSecurity; allSecurityToBeRemoved = removeAllSecurity;
} }
/** /**
* Provides the document ID. * Provides the document ID.
* *
* @return the dcoument ID * @return the document ID
*/ */
public Long getDocumentId() public Long getDocumentId()
{ {
return documentId; return documentId;
} }
/** /**
* Sets the document ID to the given value. * Sets the document ID to the given value.
* *
* @param docId the new document ID * @param docId the new document ID
 End of changes. 4 change blocks. 
9 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)