Gunnsteinn Hall
ad2a1e9c9d
Subsetting fixes ( #346 )
...
* Update unitype lib which improves subsetting
* Add text extraction check to creator font subsetting example
Helps ensure ToUnicode map is set correctly.
* Clean up import
* Fix spelling
2020-05-12 07:15:09 +00:00
Adrian-George Bostan
aef6e5e976
Fix CMap generation and serialization for composite fonts ( #344 )
...
* Fix CMap charcode mapping serialization
* Improve CMap generation in the NewCompositePdfFontFromTTF function
2020-05-08 00:15:09 +00:00
Adrian-George Bostan
f60e313cdb
Fix incorrect render of invoice totals ( #342 )
...
* Fix rendering invoice totals area on page breaks
* Improve invoice simple test case
2020-05-06 20:12:44 +00:00
Gunnsteinn Hall
9ef2f27694
Support for subsetting fonts ( #335 )
...
* Subsetting of TrueType CID fonts using unitype
* Simplify call to SubsetRegistered so can be done right after loading font via creator finalizer
* Add an EnableFontSubsetting function on the creator to simplify font subsetting for creator users
2020-05-05 00:17:27 +00:00
Gunnsteinn Hall
f445a10391
Merge pull request #336 from unidoc/master
...
Master into development
2020-05-02 14:23:01 +00:00
Adrian-George Bostan
c17719d232
Invoice component improvements ( #334 )
...
* Add invoice address heading field
* Update invoice test cases
* Add default value to buyer address heading
* Add Street2 and State address fields
* Add configurable address separator field
* Improve invoice test cases
2020-05-01 12:56:43 +00:00
Adrian-George Bostan
30db3448f7
Add support for multi-block styled paragraphs ( #331 )
...
* Add support for multi-block styled paragraphs
* Fix context space when drawing division inside tables
* Update context height when drawing tables
* Update advanced invoice test case
* Add basic multi-block styled paragraph test case
2020-04-29 19:22:00 +00:00
Adrian-George Bostan
d84d0c4375
Form fill fixes ( #328 )
...
* Parse form fields with embedded widget annotations
* Try matching fields both by partial and full names on form fill
* Use default font if widget font is not found when generating appearance
* Add JSON extract and fill test case
2020-04-24 16:48:06 +00:00
Gunnsteinn Hall
0a9a9582e0
Merge pull request #327 from gunnsth/release/v3.6.2
...
Prepare unipdf release v3.6.2
v3.6.2
2020-04-23 11:24:54 +00:00
Gunnsteinn Hall
db242dbcff
Update version.go for 3.6.2
2020-04-23 01:36:32 +00:00
Adrian-George Bostan
cb0166e96b
Add low level PageLabels support ( #325 )
...
* Add reader method for retriving the PageLabels entry from the catalog
* Add writer method for setting the PageLabels entry in the catalog.
* Add creator method for adding page labels for the output file
* Add creator page labels test case
* Minor page labels test case correction
2020-04-22 21:17:33 +00:00
Alexey Pavlyukov
a69d788171
Add timestamp signature handler ( #301 )
...
* Add timestamp signature handler
* Add timestamp signature handler test
* fix PR issues
* fix PR issues
* fix PR issues
* Fix
Co-authored-by: Gunnsteinn Hall <gunnsteinn.hall@gmail.com>
2020-04-22 20:21:53 +00:00
Adrian-George Bostan
6678fc040a
Cache raw CMap data ( #324 )
2020-04-21 21:53:36 +00:00
Alfred Hall
bc5c0d95d3
Merge pull request #320 from gunnsth/dev-writer-error-handling
...
Fix error handling in Writer
2020-04-18 17:13:40 +00:00
Alfred Hall
8a6826a043
Merge pull request #319 from gunnsth/dev-compositefont-memory-loading
...
Add NewCompositePdfFontFromTTF to load composite TTF from memory
2020-04-18 13:56:19 +00:00
Gunnsteinn Hall
6308fc8014
Fix error handling in write, with a testcase.
2020-04-18 13:48:44 +00:00
Gunnsteinn Hall
fa5f13501b
Fixes
2020-04-18 11:12:26 +00:00
Gunnsteinn Hall
d23d4b8c79
Add NewCompositePdfFontFromTTF to load composite TTF from memory
2020-04-18 10:37:10 +00:00
Gunnsteinn Hall
11f3a6e7a2
Fix for crash in CCITT decoder. Resolves https://github.com/unidoc/unipdf/issues/314 ( #315 )
2020-04-16 23:05:50 +00:00
Adrian-George Bostan
61ff51916a
Double quote content stream operator fixes ( #313 )
...
* Fix wrong symbol checks used for the double quote content stream operator
* Fix text extraction parameter check for the double quote operator
2020-04-16 14:32:34 +00:00
Adrian-George Bostan
a351532cd3
Prevent Type 0 function evaluation crash ( #309 )
2020-04-15 21:05:20 +00:00
Adrian-George Bostan
ff79a9b1bd
Prevent recursion when building invalid outline tree ( #308 )
2020-04-15 19:33:36 +00:00
Adrian-George Bostan
d605803bd2
Prevent panics ( #305 )
...
* Remove panic on font nil Differences array
* Remove unused bcmaps function
* Remove panics from the core/security/crypt package
* Fix extractor invalid Do operand crash
* Fix TTF parser crash for invalid hhea number of hMetrics
* Remove ECB crypt panics
* Remove standard_r6 panics
* Remove panic from render package
2020-04-14 21:09:16 +00:00
Gunnsteinn Hall
86a0336ab4
Merge pull request #303 from kucjac/issue/rm-jb-file
...
Removed checkerboard-squares-black-white.jb2 file
2020-04-13 13:04:16 +00:00
Jacek Kucharczyk
4b3bae8c31
Removed checkerboard-squares-black-white.jb2 file
2020-04-13 14:32:27 +02:00
Gunnsteinn Hall
25e63bff94
Merge pull request #300 from unidoc/master
...
Master into development
2020-04-09 00:14:37 +00:00
Gunnsteinn Hall
971a00f1ed
Merge pull request #299 from gunnsth/release/v3.6.1
...
Prepare unipdf release v3.6.1
v3.6.1
2020-04-08 18:41:09 +00:00
Gunnsteinn Hall
3060409720
Update version.go to 3.6.1
2020-04-08 13:04:30 +00:00
Jacek Kucharczyk
ad0b31ea1b
Optimizer fix for the CCITTFax Encoder. ISS #243 . Fixes JBIG2 i386 architecture compile issue. ( #297 )
...
* Fixed issue #243 . Added optimize integration tests.
* Minor style change.
* XObjImage getParamsDict updates Columns and Rows.
* Added doc file for the optimize/tests package.
* UpdateParams for CCITTFax Encoder accepts Width and Height also. Removed
GetParamsDict Columns and Rows parameters from model.Image and
model.XObjImage.
* Fix i386 issue for the jbig2 arithmetic encoder.
* Added 386 architecture to the .travis/cross_build.sh
2020-04-08 11:11:49 +00:00
Gunnsteinn Hall
c169f002f8
Merge pull request #298 from adrg/travis-cross-build
...
Add Travis cross build test
2020-04-07 21:06:03 +00:00
Adrian-George Bostan
fb63969312
Update .travis.yml
2020-04-07 22:56:48 +03:00
Adrian-George Bostan
bfa8aecc18
Add cross build script
2020-04-07 22:56:26 +03:00
Gunnsteinn Hall
ce8472cddd
Merge pull request #296 from unidoc/master
...
Master into development
2020-04-07 10:07:39 +00:00
Gunnsteinn Hall
0b89bf0c27
Merge pull request #295 from gunnsth/release/v3.6.0
...
Prepare unipdf release v3.6.0
v3.6.0
2020-04-07 08:57:23 +00:00
Gunnsteinn Hall
dadddb40f1
Update version.go to 3.6.0
2020-04-07 00:07:24 +00:00
Adrian-George Bostan
5a21f16e83
Paragraph components fixes ( #294 )
...
* Take spaces into account when wrapping styled paragraph text
* Fix starting position of styled paragraphs
* Wrap text unconditionally when style paragraph height is requested
* Fix styled paragraph text wrapping edge case
* Fix text chunk wrapping edge case
* Adapt text chunk test
* Wrap text unconditionally when paragraph height is requested
* Add text wrapping test case for styled paragraph using character spacing
2020-04-06 23:58:22 +00:00
Jacek Kucharczyk
29efa30439
JBIG2 Encoder support for inserting binary images into PDF ( #288 )
...
* Added JBIG2 PDF support
* Added JBIG2 Encoder binary image requirements
* PR #288 revision r1 fixes
* PR #288 revision r2 fixes
2020-04-03 20:54:59 +00:00
Adrian-George Bostan
64a43b38d2
Prevent crashing when processing content stream ( #291 )
...
* Skip invalid pop operation on empty graphics state stacks
* Fix clipping input values to size for Type 0 Functions
* Do not pass invalid Q content stream operator to external handlers
2020-04-01 20:08:41 +00:00
Jacek Kucharczyk
c582323a8f
JBIG2 Generic Encoder ( #264 )
...
* Prepared skeleton and basic component implementations for the jbig2 encoding.
* Added Bitset. Implemented Bitmap.
* Decoder with old Arithmetic Decoder
* Partly working arithmetic
* Working arithmetic decoder.
* MMR patched.
* rebuild to apache.
* Working generic
* Working generic
* Decoded full document
* Update Jenkinsfile go version [master] (#398 )
* Update Jenkinsfile go version
* Decoded AnnexH document
* Minor issues fixed.
* Update README.md
* Fixed generic region errors. Added benchmark. Added bitmap unpadder. Added Bitmap toImage method.
* Fixed endofpage error
* Added integration test.
* Decoded all test files without errors. Implemented JBIG2Global.
* Merged with v3 version
* Fixed the EOF in the globals issue
* Fixed the JBIG2 ChocolateData Decode
* JBIG2 Added license information
* Minor fix in jbig2 encoding.
* Applied the logging convention
* Cleaned unnecessary imports
* Go modules clear unused imports
* checked out the README.md
* Moved trace to Debug. Fixed the build integrate tag in the document_decode_test.go
* Initial encoder skeleton
* Applied UniPDF Developer Guide. Fixed lint issues.
* Cleared documentation, fixed style issues.
* Added jbig2 doc.go files. Applied unipdf guide style.
* Minor code style changes.
* Minor naming and style issues fixes.
* Minor naming changes. Style issues fixed.
* Review r11 fixes.
* Added JBIG2 Encoder skeleton.
* Moved Document and Page to jbig2/document package. Created decoder package responsible for decoding jbig2 stream.
* Implemented raster functions.
* Added raster uni low test funcitons.
* Added raster low test functions
* untracked files on jbig2-encoder: c869089 Added raster low test functions
* index on jbig2-encoder: c869089 Added raster low test functions
* Added morph files.
* implemented jbig2 encoder basics
* JBIG2 Encoder - Generic method
* Added jbig2 image encode ttests, black/white image tests
* cleaned and tested jbig2 package
* unfinished jbig2 classified encoder
* jbig2 minor style changes
* minor jbig2 encoder changes
* prepared JBIG2 Encoder
* Style and lint fixes
* Minor changes and lints
* Fixed shift unsinged value build errors
* Minor naming change
* Added jbig2 encode, image gondels. Fixed jbig2 decode bug.
* Provided jbig2 core.DecodeGlobals function.
* Fixed JBIG2Encoder `r6` revision issues.
* Removed public JBIG2Encoder document.
* Minor style changes
* added NewJBIG2Encoder function.
* fixed JBIG2Encoder 'r9' revision issues.
* Cleared 'r9' commented code.
* Updated ACKNOWLEDGEMENETS. Fixed JBIG2Encoder 'r10' revision issues.
Co-authored-by: Gunnsteinn Hall <gunnsteinn.hall@gmail.com>
2020-03-27 11:47:41 +00:00
Gunnsteinn Hall
2e2a3dd3ce
Merge pull request #286 from adrg/image-handler-nrgba
...
Use NRGBA when loading model.Image instances from Go images
2020-03-27 00:02:46 +00:00
Adrian-George Bostan
edba514087
Use NRGBA when loading model.Image instances from Go images
2020-03-26 21:47:00 +02:00
Gunnsteinn Hall
38b564cd71
Merge pull request #281 from peterwilliams97/multi.encode.clean
...
Write out multi-encoder filters correctly
2020-03-19 10:04:24 +00:00
Peter Williams
7a042275de
Write out multi-encoder filters correctly
2020-03-19 19:12:05 +11:00
Gunnsteinn Hall
5987255f11
Merge pull request #278 from unidoc/master
...
Update workflow in development
2020-03-10 10:36:23 +00:00
Gunnsteinn Hall
ed30fe63f3
Stop greeting on PRs as does not work with Actions
...
See
https://github.com/actions/first-interaction/issues/10
2020-03-09 23:52:07 +00:00
Gunnsteinn Hall
0f9a37df23
Merge pull request #276 from unidoc/master
...
Master into development branch
2020-03-09 21:19:07 +00:00
Gunnsteinn Hall
d1c808d136
Merge pull request #274 from gunnsth/release/v3.5.0
...
Prepare unipdf release v3.5.0
v3.5.0
2020-03-09 08:55:32 +00:00
Gunnsteinn Hall
4bdda0af2b
Merge branch 'master' into release/v3.5.0
2020-03-08 23:59:33 +00:00
Gunnsteinn Hall
0a0e53d8c7
Update version to 3.5.0
2020-03-08 23:54:58 +00:00
Gunnsteinn Hall
c22b7efbe1
Prepare release of v3.4.2
2020-03-08 23:51:01 +00:00