We are pleased to share a new version of Aspose.Pdf for Java with following improvements.
New Features
- PDFNEWJAVA-33314 PDF Bookmark should point to the start of page
- PDFNEWJAVA-33310 Save the resultant PDF in particular PDF file version
- PDFNEWJAVA-33553 Retrieve all Signatures and Images from PDF
- PDFNEWJAVA-34070 Force table rendering in new page
Enhancement
- PDFNEWJAVA-34059 Performance of the document.save method
- PDFNEWJAVA-34063 Concatenating Tagged file results into non-tagged file.
- PDFNEWJAVA-34063 Concatenating Tagged file results into non-tagged file.
- PDFNEWJAVA-33952 Aspose.Pdf for Java throws stackoverflow exception if default Locale is other than English
- PDFNEWJAVA-34024 Exception while removing image from PDF file
- PDFNEWJAVA-33902 Unable to add digital signature to PDF file
- PDFNEWJAVA-34179 PDF to JPEG - Image Resolution is always 96
- PDFNEWJAVA-33494 Black pixels appear when adding an antialiased transparent image to a pdf
- PDFNEWJAVA-34052 Aspose.Pdf attempting to open images in RW rather than RO
Investigations (Not a Bug):
- PDFNEWJAVA-33557 Compare two PDF files
Public API and Backwards Incompatible Changes:
Added the following classes:
BaseOperatorCollection
DocMDPAccessPermissions
DocMDPSignature
LightweightOperatorCollection
OcspSettings
PclConverter
PclSaveOptions
TextParagraphAbsorber
TextParagraphCollection
TimestampSettings
UnifiedSaveOptions
Changed class names:
MhtToPdfConverter -> MhtConverter
XpsToPdfConverter -> XpsConverter
In class SaveFormat was renamed field:
SaveFormat.None -> SaveFormat.Pdf
In class XForm was renamed method :
public Rectangle getRectangle_Rename_Namesake () -> public Rectangle getRectangle()
In PdfFileEditor class was added the next methods:
public boolean getCopyLogicalStructure()
public void setCopyLogicalStructure(boolean value)
In PdfFileSignature class was added the next methods:
public boolean isCertified()
public int getAccessPermissions()
public void certify(int page, String SigReason, String SigContact, String SigLocation, boolean visible, java.awt.Rectangle annotRect, DocMDPSignature docMdpSignature)
In Stamp class was added the next methods:
public int getQuality()
public void setQuality(int value)
In Document class was added the next methods:
public Copier getDefaultCopier()
public Object getCatalogValue(String key)
In Annotation class was added the next methods:
public static boolean getUseFontSubset()
public static void setUseFontSubset(boolean value)
public void setColor_Rename_Namesake(Color value)
In BaseParagraph class was added the next methods:
public boolean isInNewPage()
public void isInNewPage(boolean value)
In DocSaveOptions class changes:
DocSaveOptions extends SaveOptions -> DocSaveOptions extends UnifiedSaveOptions
added field:
public ConversionProgressEventHandler CustomProgressHandler
In HtmlConverter class was renamed method name:
saveReferencedHtml (..)->saveOneHtmlPageMarkup (..)
In HtmlSaveOptions class changes:
HtmlSaveOptions extends SaveOptions -> HtmlSaveOptions extends UnifiedSaveOptions
added field:
public ConversionProgressEventHandler CustomProgressHandler
added internal classes:
public static class HtmlPageMarkupSavingInfo
public static final class HtmlMarkupGenerationModes
In ImageStamp class was added the next methods:
public int getQuality()
public void setQuality(int value)
In MobiXmlSaveOptions class changes:
MobiXmlSaveOptions extends SaveOptions -> MobiXmlSaveOptions extends UnifiedSaveOptions
In OperatorCollection class changes:
public final class OperatorCollection implements ICollection -> public class OperatorCollection extends BaseOperatorCollection implements ICollection
In PdfFormat class was added the next element:
public static final int PDF_X_3 = 10;
In Signature class added the next methods:
public TimestampSettings getTimestampSettings()
public void setTimestampSettings(TimestampSettings value)
In TextBuilder class changes:
public TextBuilder(Page page, OperatorCollection operatorCollection) -> public TextBuilder(Page page, BaseOperatorCollection operatorCollection)
In Watermark class changes:
public Watermark(com.aspose.ms.System.Drawing.Image image) -> public Watermark(BufferedImage nativeImage)
added constructor:
public Watermark(BufferedImage nativeImage, Rectangle rect)
added method:
public BufferedImage getImage()
In XImageCollection class changes:
added method:
public void add(InputStream image, int quality)
In XpsSaveOptions class changes:
XpsSaveOptions extends SaveOptions -> XpsSaveOptions extends UnifiedSaveOptions
BaseOperatorCollection
DocMDPAccessPermissions
DocMDPSignature
LightweightOperatorCollection
OcspSettings
PclConverter
PclSaveOptions
TextParagraphAbsorber
TextParagraphCollection
TimestampSettings
UnifiedSaveOptions
Changed class names:
MhtToPdfConverter -> MhtConverter
XpsToPdfConverter -> XpsConverter
In class SaveFormat was renamed field:
SaveFormat.None -> SaveFormat.Pdf
In class XForm was renamed method :
public Rectangle getRectangle_Rename_Namesake () -> public Rectangle getRectangle()
In PdfFileEditor class was added the next methods:
public boolean getCopyLogicalStructure()
public void setCopyLogicalStructure(boolean value)
In PdfFileSignature class was added the next methods:
public boolean isCertified()
public int getAccessPermissions()
public void certify(int page, String SigReason, String SigContact, String SigLocation, boolean visible, java.awt.Rectangle annotRect, DocMDPSignature docMdpSignature)
In Stamp class was added the next methods:
public int getQuality()
public void setQuality(int value)
In Document class was added the next methods:
public Copier getDefaultCopier()
public Object getCatalogValue(String key)
In Annotation class was added the next methods:
public static boolean getUseFontSubset()
public static void setUseFontSubset(boolean value)
public void setColor_Rename_Namesake(Color value)
In BaseParagraph class was added the next methods:
public boolean isInNewPage()
public void isInNewPage(boolean value)
In DocSaveOptions class changes:
DocSaveOptions extends SaveOptions -> DocSaveOptions extends UnifiedSaveOptions
added field:
public ConversionProgressEventHandler CustomProgressHandler
In HtmlConverter class was renamed method name:
saveReferencedHtml (..)->saveOneHtmlPageMarkup (..)
In HtmlSaveOptions class changes:
HtmlSaveOptions extends SaveOptions -> HtmlSaveOptions extends UnifiedSaveOptions
added field:
public ConversionProgressEventHandler CustomProgressHandler
added internal classes:
public static class HtmlPageMarkupSavingInfo
public static final class HtmlMarkupGenerationModes
In ImageStamp class was added the next methods:
public int getQuality()
public void setQuality(int value)
In MobiXmlSaveOptions class changes:
MobiXmlSaveOptions extends SaveOptions -> MobiXmlSaveOptions extends UnifiedSaveOptions
In OperatorCollection class changes:
public final class OperatorCollection implements ICollection -> public class OperatorCollection extends BaseOperatorCollection implements ICollection
In PdfFormat class was added the next element:
public static final int PDF_X_3 = 10;
In Signature class added the next methods:
public TimestampSettings getTimestampSettings()
public void setTimestampSettings(TimestampSettings value)
In TextBuilder class changes:
public TextBuilder(Page page, OperatorCollection operatorCollection) -> public TextBuilder(Page page, BaseOperatorCollection operatorCollection)
In Watermark class changes:
public Watermark(com.aspose.ms.System.Drawing.Image image) -> public Watermark(BufferedImage nativeImage)
added constructor:
public Watermark(BufferedImage nativeImage, Rectangle rect)
added method:
public BufferedImage getImage()
In XImageCollection class changes:
added method:
public void add(InputStream image, int quality)
In XpsSaveOptions class changes:
XpsSaveOptions extends SaveOptions -> XpsSaveOptions extends UnifiedSaveOptions