This is a workaround to let a test in creator_test.go pass.
With the old text extraction code the following extracted text was 100 chars. With the new code it
is 102 chars which looks correct.
"你好\n你好你好你好你好\n河上白云\n\nUnlicensed UniDoc - Get a license on https://unidoc.io\n\n"
* Skip referenced pages which are not present in the catalog
* Improve documentation for the copyObject method of the writer
* Add creator test case for checking referenced page destinations
* Track runes in IdentityEncoder (for subsetting), track decoded runes
* Working with the identity encoder in font_composite.go
* Add GetFilterArray to multi encoder. Add comments.
* Add NewFromContents constructor to extractor only requiring contents and resources
* golint fixes
* Optimizer compress streams - improved detection of raw streams
* Optimize - CleanContentStream optimizer that removes redundant operands
* WIP Optimize - clean fonts
Will support both font file reduction and subsetting. (WIP)
* Optimize - image processing - try combined DCT and Flate
* Update options.go
* Update optimizer.go
* Create utils.go for optimize with common methods needed for optimization
* Optimizer - add font subsetting method
Covers XObject Forms, annotaitons etc. Uses extractor package to extract text marks covering what fonts and glyphs are used. Package truetype used for subsetting.
* Add some comments
* Fix cmap parsing rune conversion
* Error checking for extractor. Add some comments.
* Update Jenkinsfile
* Update modules
* Fix combo field appearances not being shown
* Fix V object type for choice and button fields
* Refactor form fill for combo and checkbox fields
* Add fill test case for text, combo and checkbox fields
* Prevent panic when flattening forms using a nil appearance generator
* Add configurable fallback font support for form fill/flatten
* Add appearance font to AcroForm DR
* Refactor DA process method
* Remove unnecessary font default size variable
* Minor refactor in the appearance generation functions
* Improve processDA appearance style method
* Use original font container if present in DR
* Maintain original appearance font autosizing behavior
* Fixed filename:page in logging
* Got CMap working for multi-rune entries
* Treat CMap entries as strings instead of runes to handle multi-byte encodings.
* Added a test for multibyte encoding.
* Changed rune->CharCode maps to string->CharCode.
* Removed unintentional changes.
* Updated comments to match new function definitions.
* Changed some []rune APIs to string
* Fixes for reviewer comments.