7 Commits

Author SHA1 Message Date
Gunnsteinn Hall
11f692bc3a
Font subsetting and font optimization improvements (#362)
* 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
2020-06-16 21:19:10 +00:00
Samuel Stauffer
d3a160ba41 Follow object indirections in PdfPage.GetMediaBox 2020-01-17 14:35:46 -08:00
Peter Williams
362ba7349d Changes to make the lazy reader work on the PaperCut corpus (#194) 2019-10-28 20:49:07 +00:00
Gunnsteinn Hall
d2e7eda95f
Lazy loading improvements (#131)
* Simplify lazy loading logic, remove redundancy. Fixes, improved performance.
* Additional lazy reader fixes
* Make core.IsNullObject method resolve references
* Adapt appender test cases for lazy reader usage
2019-07-24 21:19:13 +00:00
Adrian-George Bostan
d8dcc051b3 Fix annotation flatten when AcroForm does not exist (#93)
* Fix annotation flatten when AcroForm does not exist.
* Adapt test case file hashes to account for file flattening
2019-06-25 19:29:03 +00:00
Adrian-George Bostan
7e56b89e18 Fix page resources not being loaded from parent nodes (#78) 2019-06-07 21:59:14 +00:00
Adrian-George Bostan
c64812093d Remmove pdf folder and move packages up one level (#2) 2019-05-16 20:44:51 +00:00