319 Commits

Author SHA1 Message Date
Denys Smirnov
6c0fd1e780 cmap: mapped values are runes, not strings 2018-11-29 04:19:29 +02:00
Denys Smirnov
5b0eaf3f3a creator: make output stable when using custom fonts; fixes #232 2018-11-29 02:56:26 +02:00
Denys Smirnov
2d7d6334bc fonts: add tests for ttf parser 2018-11-17 15:03:38 +01:00
Denys Smirnov
86a30df78c fonts: floats should be signed 2018-11-17 15:03:34 +01:00
Denys Smirnov
c8c7a03896 fonts: fix glyph id bounds check 2018-11-07 22:09:57 +02:00
Denys Smirnov
08c1fe4ed4 fonts: remove unused field 2018-11-07 22:09:57 +02:00
Gunnsteinn Hall
4e2e3defba Merge branch 'v3' into v3-enhance-forms 2018-10-23 12:09:01 +00:00
Gunnsteinn Hall
d756c17011 Addressing PR 238 review comments 2018-10-23 12:03:47 +00:00
Gunnsteinn Hall
8007138bd3 Addressing PR 238 review comments 2018-10-23 11:43:02 +00:00
Denys Smirnov
995f1595ce textencoding: don't use explicit type for nested map declarations 2018-10-16 01:44:12 +03:00
Denys Smirnov
a5b5c63f89 model: fix runes enumeration in composite fonts 2018-10-16 01:44:12 +03:00
Denys Smirnov
558fe5a420 model: use composite struct literal for initialization 2018-10-16 01:44:12 +03:00
Gunnsteinn Hall
c87723b411 Update to prepare PR 2018-10-15 10:58:19 +00:00
Gunnsteinn Hall
54b47021e4 Change optimizer to FlateEncoding - seems more robust 2018-10-13 17:44:38 +00:00
Gunnsteinn Hall
3454ec67dc Merge branch 'v3' into v3-enhance-forms 2018-10-13 11:32:20 +00:00
Gunnsteinn Hall
4eafe4f404 Cleaning up digital signatures from the v3-enhance-forms branch 2018-10-13 11:02:09 +00:00
Gunnsteinn Hall
817d0dc805 Field appearance alignment refinements with some options. 2018-10-12 00:53:41 +00:00
Gunnsteinn Hall
bc6391200a Avoid outputing invalid Encoding name for generated standard fonts (use font encoding instead) 2018-10-10 22:44:55 +00:00
Samuel Melrose
d3cc236351 Expose PDF Version #230 2018-10-08 10:27:39 +00:00
Denys Smirnov
84284c88ec security: add missing license headers, more documentation 2018-10-08 01:04:56 +03:00
Denys Smirnov
7bd4ba688d core: split crypt filter methods into a separate package 2018-10-08 00:18:18 +03:00
Denys Smirnov
42df346e69 core: split security handlers into a separate package 2018-10-08 00:18:18 +03:00
Denys Smirnov
bccaa87cdc core: refactor encryption and decryption types 2018-10-08 00:18:18 +03:00
Denys Smirnov
b5288e7ddc core: change permissions type to a bitmask 2018-10-08 00:18:18 +03:00
Denys Smirnov
ef64bef191 core: permissions field is uint32 according to the spec 2018-10-08 00:18:18 +03:00
Gunnsteinn Hall
7d345ea966 Use bytes.Buffer instead of strings.Builder 2018-10-05 10:11:24 +00:00
Gunnsteinn Hall
ab0cd31266 Flatten - append to contentstream directly (not adding additional stream objects) 2018-10-05 04:27:58 +00:00
Gunnsteinn Hall
3536d323fb Support MK appearance characteristics for certain styles. Wrap content stream to fix bugs. 2018-10-05 01:59:19 +00:00
Gunnsteinn Hall
e352432bf9 Fix for compressed XObject stream generation 2018-10-03 22:35:58 +00:00
Gunnsteinn Hall
6feb782c31 Enhancements to field appearance generation. Styling options added. 2018-10-03 22:35:10 +00:00
Gunnsteinn Hall
cdbb4ab349 Same handling for name values as string (encoding) for form filling 2018-10-03 15:08:56 +00:00
Gunnsteinn Hall
ab87949919 Avoid crash if form is nil when filling 2018-10-03 14:56:23 +00:00
Gunnsteinn Hall
b39c7065e8 Fix for outputing Function type 0 (colorspace) 2018-10-03 14:56:03 +00:00
Aleksei Pavliukov
364e8c871f Fix combine objects optimizations 2018-10-03 01:58:03 +03:00
Gunnsteinn Hall
d9ae3d6d38 Add form Fill function via FieldValueProvider interface 2018-10-02 19:50:18 +00:00
Gunnsteinn Hall
ced423e2ce Fix for loading standard fonts with Encoding difference maps 2018-10-02 01:20:39 +00:00
Gunnsteinn Hall
8be0c2cf5a Added package test for optimize - showcasing an issue 2018-09-30 23:58:56 +00:00
Gunnsteinn Hall
e059440204 Fix if encryptObj not set 2018-09-30 18:45:35 +00:00
Gunnsteinn Hall
4068ea6130 Fix problem with encryptObject having incorrect reference in trailer due to copying 2018-09-30 18:38:50 +00:00
Aleksei Pavliukov
ea5dba8e0d Implemented : PDFs optimization 2018-09-30 01:01:31 +03:00
Gunnsteinn Hall
3df4c34df5 Add back PageFromIndirectObject 2018-09-29 17:34:43 +00:00
Gunnsteinn Hall
aea91f1ba9 Merge branch 'v3' into v3-enhance-forms 2018-09-29 16:59:16 +00:00
Gunnsteinn Hall
9f06ba4ee8 Fix for using loaded standard14 fonts with test case 2018-09-29 02:24:10 +00:00
Gunnsteinn Hall
1376fd092d Export model.NewReaderForText handy for testing 2018-09-29 02:21:56 +00:00
Gunnsteinn Hall
d498dc3e97 Add FieldAppearanceGenerator interface and apply when flattening fields 2018-09-28 09:50:48 +00:00
Denys Smirnov
acd4308d56 Merge branch 'refactor' into v3
# Conflicts:
#	pdf/core/crypt.go
#	pdf/model/writer.go
2018-09-26 01:08:19 +03:00
Denys Smirnov
b3c45a550a core: refactor crypt filter selection code 2018-09-26 00:52:05 +03:00
Gunnsteinn Hall
2522849b19 Fix for handling non-widget annotations per page when flattening 2018-09-24 19:50:58 +00:00
Peter Williams
f953c11452 Don't return errors for TrueType font file tables with no PostScript entry in their "name" table.
This is needed for PDFs created with Tesseract.
2018-09-24 18:02:02 +10:00
Peter Williams
c76fa6985e Moved font cache from global variable to Extractor. 2018-09-22 09:28:18 +10:00