Unipdf Versions Save

Golang PDF library for creating and processing PDF files (pure go)

v3.29.0

2 years ago

UniPDF version 3.29.0 contains new features and multiple bug fixes. Notably, PDF/A verification for fonts has been implemented. In addition, digital signing of encrypted PDF files is now supported.

The list of changes is as follows.

Bug

UP-259 ERROR: UniDoc pdfReader failed to ExtractPageText: pageNum=1 err=range check error

UP-256 invalid Page Rotate object

UP-255 Another instance of Split operation failed on v3.28.0

UP-254 Unexpected behaviour when the contents of the a cell that has a rowspan > 1 exceeds the height of the rest of the table.

UP-242 Signing invalidates document

UP-240 Optimizer issue: Failed creating multi encoder: invalid filter in multi filter array

UP-142 Rendering issue where image content is blacked out

UP-141 Path drawing looks different than in Adobe

Enhancements

UP-239 As a user I want to encrypt pdfs and allow signing encrypted pdfs so only intended users can view and sign them

UP-263 Implement PDF/A font verifiers

UP-241 creator - Add example for table rowspan

New examples

v3.28.0

2 years ago

This minor release of UniPDF contains the following changes:

New Features:

Enhancements and fixes

  • More resilient error handling in PDF optimizers [UP-244]
  • Creator: Allow frontpage to contain multiple pages [UP-235]
  • Creator: Fix page-wrapping for images in table [UP-237]
  • Digital signing: adbe.x509.rsa_sha1 handler - Detect algorithm from pkcs#1 package [UP-238]
  • Form fields: Fix text alignment for appearance generation due to encoding issue [UP-246]

v3.27.0

2 years ago

This minor release of UniPDF contains the following changes:

New features:

  • Support for filling image form fields. [UP-228]
  • Row span support for tables in the creator [UP-236]

Enhancements and fixes:

  • Fixes in form fill appearance with several bugs in text field appearance generation fixed. More detail to follow. [UP-219]
  • Fix problem in image optimizer with "unsupported encoding parameter" issue [UP-190]
  • Fix issue with image optimizer with "invalid operand" error [UP-190]
  • Fix image optimizer PPI calculation with more advanced content stream processor [UP-160]
  • Fix error when Rotate page object was float [UP-229]
  • Fix error when AES buf length was < 16 [UP-229]

v3.26.1

2 years ago

This bugfix release of UniPDF contains the following fix:

  • Fix problem with compressing duplicate streams [UP-212]

v3.26.0

3 years ago

This minor release of UniPDF contains the following changes:

  • [UP-206] Add styled paragraph text vertical align options
  • [UP-215] Resume decoding CCITTFax image upon failure

v3.25.0

3 years ago

This minor release of UniPDF contains the following changes:

  • [UP-207] Composite font widths fix
  • [UP-210] Fix graphic state
  • [UP-211] Fix GetNamedDestinations and add GetNameDictionary method
  • [UP-208] Add character horizontal scaling support for styled paragraph

v3.24.0

3 years ago

This minor release includes:

  • Add OpenAction to PdfWriter to support Javascript action on document open Example: pdf_add_javascript_docopen.go
  • Add NewPdfReaderFromFile for more convenient opening files with options
  • Flatten bugfix for form with inherited flags [UP-209]

v3.23.0

3 years ago

This minor release includes:

  • Add text overflow constants
  • Integrate text overflow options in the styled paragraph component
  • Add page finalize callback function for creator instances
  • Minor clip path calculation improvement

v3.22.0

3 years ago

This minor release of UniPDF has the following updates:

v3.21.0

3 years ago

This minor release of UniPDF has the following updates:

  • Added outline size and outline color support for creator text chunks (which are the building blocks of styled paragraphs). [UP-194]
  • Added CMYK color support for all components in the creator package. [UP-194]
  • Improved color support for all the geometric shapes defined in the contentstream/draw package. [UP-194]
  • Improved Type 3 font text extraction support [UP-118]
  • PageProcessCallback added with error passback for PdfReader.ToWriter of PageCallback [UP-193]
  • Concurrency map access fixes [USD-60]
  • Fix core.DCTEncoder.EncodeBytes for GrayScale images [UP-192]

NOTE: all the model.PdfColorDeviceRGB fields have been changed to the model.PdfColor interface in order to support colors defined in different color spaces (e.g. model.PdfColorDeviceRGB, model.PdfColorDeviceGray, PdfColorDeviceCMYK, etc.).

Most code bases should not be affected and everything should continue to work without any changes. However, due to the use of an interface, there is a low chance of a breaking change in the draw package where the methods of the model.PdfColorDeviceRGB struct are used in the context of the shape color fields (e.g. Rectangle.FillColor.R()) will have to be type asserted (Rectangle.FillColor.(*model.PdfColorDeviceRGB).R()).