1456 Commits

Author SHA1 Message Date
Gunnsteinn Hall
112c39a889
Merge pull request #70 from gunnsth/release-v3.0.1
Release v3.0.1
v3.0.1
2019-06-02 15:25:25 +00:00
Gunnsteinn Hall
45bef6de26 Update README.md 2019-06-02 15:06:28 +00:00
Gunnsteinn Hall
33945e7779 Prepare for release. Update version.go and README. Fix testcase . 2019-06-02 14:59:15 +00:00
Adrian-George Bostan
1dcde7d76e Add support for vertical alignment of styled paragraphs inside table cells (#69) 2019-06-02 14:57:41 +00:00
Adrian-George Bostan
7f4e3b8f13 Update page resources Font dictionary when applying license information (#5)
* Make PdfObjectDictionary Merge method chainable
* Update page resources Font dictionary when applying license information
* Add license font to the page resources only when it does not exist
* Update hash for split test after verification
2019-06-02 14:57:41 +00:00
Gunnsteinn Hall
326742a81f
Update README.MD 2019-05-24 00:44:40 +00:00
Gunnsteinn Hall
bc0edcb8dd Update issue templates v3.0.0 2019-05-20 10:18:26 +00:00
Gunnsteinn Hall
37d822bead
unipdf move updates (#6)
* Update README and other documentation for unipdf
* Update Jenkinsfile
* Get test dependencies too (Jenkinsfile processing not fully module based yet)
* Update wercker file for modules
2019-05-19 12:41:13 +00:00
Adrian-George Bostan
c64812093d Remmove pdf folder and move packages up one level (#2) 2019-05-16 20:44:51 +00:00
Adrian-George Bostan
8acac88784 Update module version and import paths (#1)
* Update import path to use unipdf
* Update module name and version
2019-05-16 20:08:40 +00:00
Gunnsteinn Hall
ad1575fce9
Merge master into v3 (#476)
* Update README.md
2019-05-14 21:54:45 +00:00
Gunnsteinn Hall
9c0c5be661
Appender - Enhancements in Incremental Updates (#474)
* Improve loading and writing out merged-in fields/annotations Maintain annotations that are loaded as merged-in as merged in annotations when writing out.
* Appender fixes: Update objects instead of always adding new.  Create xref chains (only entries for new changes in xref).
* Update AcroForm Fields object in new signed revisions
* Add test for multiple signing revisions with multiple fields and appearances
* Fix acroform handling to reuse object
2019-05-14 21:14:53 +00:00
Gunnsteinn Hall
1046d82744
Contentstream: Check for valid object or operand following EI in inline image parsing (#471)
* Check for valid object or operand following EI in inline image.  Addresses #469
* Improve resiliency by checking 3 following objects after EI.  Add test cases.
2019-05-13 20:26:23 +00:00
Gunnsteinn Hall
fa9ac473a0
Support Encoding dictionaries with type not explicitly set (#455) 2019-05-13 19:50:07 +00:00
Gunnsteinn Hall
07ba42176d
Benchmark paragraph adding. Demonstrates issue #139. (#456)
Couple of TODO comments to where things appear to be slow.
2019-04-30 22:09:05 +00:00
Gunnsteinn Hall
7b7eccd65e
V3: Detect and fix stride offsets in loaded go images (#448)
* Detect and fix stride offsets in loaded go images
* Benchmarks for image copying performance
* Account for potential image offsets when constructing model Image data
Removes need for extra copying of image data
2019-04-30 19:10:52 +00:00
Gunnsteinn Hall
359d6965de
V3: Write page annots from loaded PDFs (#452)
* Add Annots when serializing page object
* Handle multiple dicts with pending objects per object (writer)
2019-04-28 12:57:11 +00:00
Adrian-George Bostan
dcc0723e70 Search xref objects with tolerance both to the left and right (#447)
* Search xref objects with tolerance both to the left and right. Try searching xref to the left only if not found to the right.
2019-04-28 12:26:50 +00:00
Gunnsteinn Hall
7cfcb9cdfd
Parser: Treat empty indirect objects as containing the null object (#446)
* Fix when writing an indirect object with nil inner PdfObject (addresses #445)
* Changed ParseIndirectObject to also handle parsing short indirect objects was EOFing right away previously.
2019-04-25 17:08:15 +00:00
Adrian-George Bostan
96daf06e35 Skip invalid data before PDF version on parse. (#441) 2019-04-24 19:04:30 +00:00
Gunnsteinn Hall
0511d00ed6
Merge pull request #440 from adrg/pdf-field-t-optional
Make T field optional on PDF field dictionary parse
2019-04-22 20:08:06 +00:00
Adrian-George Bostan
e1c918631a Make T field optional on PDF field dictionary parse 2019-04-22 22:43:55 +03:00
Gunnsteinn Hall
3b2c788c32
Merge pull request #439 from adrg/aes-bit-crypt-filter-length
Account for crypt filter length specified in bits for AESV2 and AESV3
2019-04-22 18:19:52 +00:00
Adrian-George Bostan
b93b4802ee Account for crypt filter length specified in bits for AESV2 and AESV3 2019-04-22 21:03:03 +03:00
Gunnsteinn Hall
15bd7e8b70
Merge pull request #438 from adrg/fix-reader-page-count
Account for page count being a reference in the reader
2019-04-22 17:34:32 +00:00
Adrian-George Bostan
c655336766 Account for page count being a reference in the reader 2019-04-22 20:13:47 +03:00
Gunnsteinn Hall
3d7ec12ac2
Merge pull request #432 from gunnsth/v3-fix-build
Make e2e split test version independent
2019-04-21 01:06:44 +00:00
Gunnsteinn Hall
7d03f86a33 Make e2e split test version independent 2019-04-21 00:56:21 +00:00
Gunnsteinn Hall
f1b8d10211
Merge pull request #431 from gunnsth/v3-release-rc1
Update version info for v3.0.0-rc.1 release
2019-04-20 23:44:13 +00:00
Gunnsteinn Hall
8f92c00976 Update version info for v3.0.0-rc.1 release 2019-04-20 23:41:19 +00:00
Adrian-George Bostan
d0db62dada Golint contentstream draw (#426)
* Fix draw package golint notices.
2019-04-18 19:35:03 +00:00
Gunnsteinn Hall
6e7b575f0f
Cross reference search speed improvements [v3] (#424)
* Change XrefTable to struct and add cache for speeding up search.  Speedup object lookup to use cache in hasObject (writer). Changed to empty struct to reduce allocations.
2019-04-18 19:22:45 +00:00
Adrian-George Bostan
69ab100a9e Make outline root an indirect object if it is a dict 2019-04-17 21:50:12 +00:00
Adrian-George Bostan
d34ba3c29e Set Pages dict Type if not set (#419) 2019-04-17 21:17:22 +00:00
Adrian-George Bostan
ca4f19e5e8 Fix contentestream package golint notices (#422) 2019-04-17 21:08:20 +00:00
Gunnsteinn Hall
03319e60d4
Jenkinsfile: Fix build to enable cgo for compiling pkcs11 examples (#423) 2019-04-17 19:54:43 +00:00
Adrian-George Bostan
0d2e2fa2cd Add custom signing function for the adobeX509RSASHA1 signature handler (#414) 2019-04-15 20:21:48 +00:00
Gunnsteinn Hall
01f3ac17b7
Fix invalid pad length [v3] (#413)
* Update filter_aesv3.go
2019-04-15 15:59:23 +00:00
Gunnsteinn Hall
f8ac397bdf
NewPdfReaderLazy supports reading PDF files in lazy-load mode (#409)
* Lazy loading support NewPdfReaderLazy. 
* Change colorspace and annotations loading to lazy. Clean up page object loading.
* Clear up reference resolving and remove redundant traceToObject function.
* Add IsLogLevel function to logger.  Can be used to avoid calling resource intensive functions except when running trace only.
2019-04-14 22:22:41 +00:00
Gunnsteinn Hall
4ba3468f76
Image loading performance enhancements [v3] (#394)
* Avoid reading entire file to memory prior to loading. Better handling of grayscale images.  Improved allocations. Avoid redrawing RGBA images again if loaded. Update  CCITTFaxDecode handling accordingly.
2019-04-14 19:03:05 +00:00
Bert Van Hauwaert
1433f04194 Expand document information dictionary - v3 branch (#408)
* Add author, creationDate, keywords, modifiedDate, subject & title to the document information dictionary.
2019-04-14 18:34:55 +00:00
Gunnsteinn Hall
852b515c99
Add split e2e test with memory checking (#410)
The split test measures duration and memory allocations.
2019-04-13 21:47:54 +00:00
Gunnsteinn Hall
ea91b30b1b
Fix for XRef stream parsing when last object not included (#399)
- xrefstream: Fix when Index too short. Instead of appending the number of objects appends higher than the maximum index. Fix object number for XRefs stream table when its own offset encountered. Test case included
2019-04-10 21:26:35 +00:00
Adrian-George Bostan
80014220cd Styled paragraph link rotation (#407)
* Rotate link annotation rectangle if paragraph is rotated. Add link rotation test case.
2019-04-09 22:08:04 +00:00
Adrian-George Bostan
d641dd8df5 Subtable row height (#404)
* Copy row height from subtables. Add table GetRowHeight method. Test table row height when adding subtables
2019-04-09 09:06:24 +00:00
Adrian-George Bostan
82a1d328f8 Add Rows and Cols methods to the Table component (#402)
* Add Rows and Cols method for the Table component with testcase.
2019-04-04 16:49:35 +00:00
Adrian-George Bostan
3712670413 Implement AddSubtable method for the Table component (#400)
* Implement AddSubtable method for the table component with test case.
2019-04-03 22:04:30 +00:00
Adrian-George Bostan
d21dab045b No break space character metrics (#397)
* Use same metrics for no-break space and space
* Update font test to include nbsp case
2019-04-02 17:57:08 +00:00
Gunnsteinn Hall
de4fb06251
Parsing compatibility fixes [v3] (#392)
* Compatibility fix for exponential parsing with a testcase
* Compatilbity fix for invalid escaped hex in names: If invalid hex then treats the '#' and hex as regular text
2019-04-02 17:44:53 +00:00
Adrian-George Bostan
54264e343e Add table headers support (#390)
* Add table headers support with a testcase.
2019-03-30 09:56:37 +00:00