Aspose.Pdf for Java 12.0.0 Release Notes

Features and Improvements

PDFNEWJAVA-34945PDF to DOC: Set default ImageResolutions to 300 dpiEnhancement
PDFNEWJAVA-35581PDF to PDF/A_3a - Resultant file is not PDF/A compliantBug
PDFNEWJAVA-35854PDF to DOC - Space between words is removedBug
PDFNEWJAVA-35061Aspose.PDF for Java v10+ do not work on HPUXBug
PDFJAVA-36064License Issue : The signature is invalidBug
PDFNEWJAVA-34923Aspose.PDf for Java throws exception while using it in OSGI ContainerBug
PDFNEWJAVA-35283NullPointerException: when printing as background serviceBug
PDFNEWJAVA-34373Unable to find text in PDF fileBug
PDFNEWJAVA-35567Saving Nested table hangs on save()Bug
PDFNEWJAVA-35392PDF to DOCX - Spaces between words in output file are missingBug
PDFNEWJAVA-34336Issue Applying the license in start up servlet init() methodBug
PDFNEWJAVA-35857XML to PDF: Accessing TextFragement/TextSegment elements inside Row element throws NPEBug
PDFNEWJAVA-34470PDF to DOC - Conversion taking too much timeBug
PDFNEWJAVA-35790Content redaction does not work properlyBug
PDFNEWJAVA-35189PDF to DOC: Invalid characters are renderedBug
PDFNEWJAVA-34561HTML to PDF - Exception during conversionBug
PDFNEWJAVA-35655PDF to PDF/A_1b - The alignment of text is disturbedBug
PDFNEWJAVA-35426PDF to PDFA1a: Image background color turns into blackBug
PDFNEWJAVA-35429PDF to PDFA1a: a circle turns into square in resultant PDFA1aBug
PDFJAVA-35959PDF to PDFA converts highlight annotation into black rectangleBug
PDFJAVA-35960PDF to XPS conversion loses the background imageBug
PDFNEWJAVA-35850PDF to XPS conversion throws ArrayIndexOutOfBound ExceptionBug

Public API Changes

Changes in class com.aspose.pdf.AnnotationSelector:

added method:

  • public void visit(WatermarkAnnotation watermark)

Changes in class com.aspose.pdf.Color:

added methods:

  • public void setTextAndState(String text, TextState textState)
  • public void setLinesAndState(String[] text, TextState textState)
  • public boolean isBackground()
  • public void setBackground(boolean value)

Changes in class com.aspose.pdf.Color:

added default constructor:

  • public Color()

Changes in class com.aspose.pdf.DocSaveOptions:

added methods:

  • public boolean isUseEmbeddedTrueTypeFonts()
  • public void setUseEmbeddedTrueTypeFonts(boolean value)

Changes in class com.aspose.pdf.Document.OptimizationOptions:

added methods:

  • public int getResolution()
  • public void setResolution(int dpi)
  • public int getMaximumImageDimension()
  • public void setMaximumImageDimension(int dimension)

Changes in class com.aspose.pdf.Rectangle:

added method:

  • public boolean isIntersect(Rectangle otherRect)

Changes in class com.aspose.pdf.TextFragment:

added methods:

  • public int getWrapLinesCount()
  • public void setWrapLinesCount(int value)

Changes in class com.aspose.pdf.TextSegment:

deleted method:

  • public static String myHtmlEncode(String value)

Added new class com.aspose.pdf.drawing.WatermarkAnnotation extends Annotation with the following constructors and methods:

  • public WatermarkAnnotation(Page page, Rectangle rect)
  • public void accept(AnnotationSelector visitor)
  • public /* AnnotationType */int getAnnotationType()
  • public FixedPrint getFixedPrint()
  • public void setText(FormattedText text)
  • public void setTextAndState(String[] text, TextState textState)

Added new class com.aspose.pdf.drawing.GradientAxialShading extends PatternColorSpace with the following constructors and methods:

  • public GradientAxialShading()
  • public GradientAxialShading(Color startColor, Color endColor)
  • public Point getEnd()
  • public void setEnd(Point value)
  • public Color getEndColor()
  • public void setEndColor(Color value)
  • public Point getStart()
  • public void setStart(Point value)
  • public Color getStartColor()
  • public void setStartColor(Color value)

Added new class com.aspose.pdf.FixedPrint with the following methods:

  • public double getHorizontalTranslation()
  • public void setHorizontalTranslation(double value)
  • public Matrix getMatrix()
  • public void setMatrix(Matrix value)
  • public double getVerticalTranslation()
  • public void setVerticalTranslation(double value)