Jim Pravetz
5a2fdd71eb
Removed direct support for radio and checkboxes.
...
Added support for options.select, options.value, options.defaultValue.
Fixed font implementation so that individual form fields can have their own font setting.
Renamed methods, reducing reference to PDF langauge syntax.
Added 'type' specifier to formAnnotation method.
2019-07-29 15:46:44 -07:00
Jim Pravetz
293b66b794
Documentation fixes.
...
Removed unused method from acroforms mixin.
2019-07-28 22:28:36 -07:00
Jim Pravetz
8b92a5173b
Making options and formatting more user friendly and improving the docs.
...
Feedback from https://github.com/foliojs/pdfkit/pull/1002
2019-07-28 22:14:20 -07:00
Jim Pravetz
0514363199
Reformatted some files using prettier.
...
Rename widgetAnnot method to widgetAnnotation
Rename initAcroForm method to initForms
Ensure existing unit tests pass.
Add formChoice example to test-acroform.js.
Minor documentation changes for forms.
2019-07-25 15:07:10 -07:00
Jim Pravetz
554cf3d9ad
Changed addNamedJavaScript to accept string instead of (nodejs-only) buffer.
...
Got jest tests running by setting setupFilesAfterEnv to include toContainChunk (not clear why this became necessary).
Modified toContainChunk to accept RegExp for all but first parameter of array.
AcroForms partial tests working.
2019-07-24 13:56:24 -07:00
Jim Pravetz
e4924bda9a
Do not add JavaScript to Catalog/Names until a named JavaScript is added.
...
Needed to prevent existing unit tests from failing.
2019-07-24 12:09:42 -07:00
Jim Pravetz
6478048630
Bug fixes for setting Ff flag and alignment.
2019-07-21 18:31:13 -07:00
Jim Pravetz
bf75b0881a
Added shortcut support for formatting form text inputs.
...
Fixed annotations to not automatically add Border and C for Widget annotations.
More documentation.
2019-07-21 12:19:08 -07:00
Jim Pravetz
9f6c5fb825
Added documentation for AcroForms.
...
Fixed spelling of NeedAppearances (doh!).
Added backgroundColor and borderColor options (for push buttons).
Added label option (for push buttons).
2019-07-20 21:16:58 -07:00
Jim Pravetz
1553ca8498
Fixes to get field heirarchy working
2019-07-19 09:04:40 -07:00
Jim Pravetz
e135aad920
Adding hierarchical field support to AcroForms
2019-07-18 21:28:36 -07:00
Jim Pravetz
b53c6a7dd3
Added field align property support.
...
Fixed string field values so that they use CosString and not CosName.
2019-07-18 17:33:05 -07:00
Jim Pravetz
9d6f6f7d1f
Fixed Subtype naming (was SubType) to get forms to start showing up.
2019-07-17 20:45:08 -07:00
Jim Pravetz
c086abe30a
Begin adding AcroForm support
2019-07-17 18:13:29 -07:00
Sebastian
8dd2211ce2
simplified as per review comment by blikblum
2019-07-11 17:01:46 +02:00
Sebastian Maier
546a7f82a3
Fix bug with document properties being undefined
...
`generateFileID` builds a hash on some document properties, some of them might be undefined or null such that `toString()` will fail. Replaced `toString()` with `String(value)`
2019-07-11 14:54:23 +02:00
Luiz Américo
f6ba2ef0c0
Fix infinite loop when text is positioned after page right margin. Based on #986 . Fixes #477 #877 #391
2019-06-11 21:36:51 -03:00
Luiz Américo
f80058a68a
Uses full saslprep path in import (fix build)
2019-06-06 20:08:10 -03:00
Luiz Américo
1d7a18c468
Use local, optimized version of saslprep package
2019-06-06 19:44:27 -03:00
Luiz Américo
4d02fff04e
Remove deprecated method PDFDocument.output
2019-06-06 19:19:11 -03:00
Floyd May
5eb7b0d978
code review tweaks
2019-05-07 08:32:25 -05:00
Luiz Américo
77dce77341
simplify string join expression
...
Co-Authored-By: floyd-may <floyd.may@gmail.com>
2019-05-07 08:29:07 -05:00
Floyd May
fd29fe2f99
throw errors when dash receives invalid args
2019-05-06 08:51:49 -05:00
Libor M
65b79f7d7c
Merge branch 'master' into es-syntax-for-default-value
2019-04-18 08:39:33 +02:00
Luiz Américo
f7a2a87ebb
Merge branch 'master' into named-destinations-es6
2019-04-17 19:31:11 -03:00
Danny Kirchmeier
c17bf39710
Fix links to page numbers within the document
2019-04-17 10:41:30 -05:00
Libor M
a2abfb4765
ES6 syntax for default values
2019-03-24 13:51:47 +01:00
Libor M
c8faebb6a5
fixed es syntax for default value
2019-03-24 13:39:26 +01:00
Libor M
1467ed092f
fix format
2019-03-24 08:55:01 +01:00
Libor M
ad593cf422
support for named destinations
2019-03-24 08:35:36 +01:00
Luiz Américo
1e62e6ffe2
Cleanup remaining artifacts from CoffeScript conversion
2019-03-03 19:58:05 -03:00
Luiz Américo
38d9a2a5fa
Merge pull request #938 from blikblum/font-cache
...
Add fontLayoutCache option
2019-03-03 19:52:45 -03:00
Luiz Américo
dae45a44ae
Rename fontCache to fontLayoutCache
2019-03-03 19:50:14 -03:00
Luiz Américo
b3a943bd9d
Add fontCache option
2019-03-03 15:17:08 -03:00
Luiz Américo
b4be0c4ee4
Add standalone virtual file system implementation
2019-03-03 12:48:54 -03:00
Luiz Américo
43ce90211c
Do not call fontkit.openSync
2019-03-02 21:04:56 -03:00
Luiz Américo
bd0631f782
Add option to defined default font
2019-03-02 20:42:56 -03:00
Luiz Américo
f52cca9214
Use valueOf when converting String object values
2019-02-16 20:25:02 -03:00
Libor M
83c5557726
fix printing permission
2019-02-10 14:21:24 +01:00
Luiz Américo
a6af76467c
Add prettier npm script and run it in *.js files
2019-01-07 20:51:06 -03:00
Luiz Américo
e3c7d64f7b
Fix PDF corruption when adding PNG images with transparency (not alpha channel)
2018-12-24 19:22:01 -03:00
Luiz Américo
dfb5f932ea
Avoid code duplication in copy image data routine
2018-12-24 09:02:25 -03:00
Luiz Américo
b7edc73318
Fix 16bit png files with alpha channel
2018-12-23 22:16:21 -03:00
Luiz Américo
acbeceb2b3
Use a loop to copy png image data instead of Buffer.copy
2018-12-23 20:30:40 -03:00
Luiz Américo
ffdda49bd6
Fix grayscale PNG images with alpha channel
2018-12-23 00:44:21 -03:00
Luiz Américo
faad6e82db
Fix defining Mask for grayscale transparent PNG files
2018-12-22 22:48:02 -03:00
Luiz Américo
eb60ed1efd
Merge pull request #889 from blikblum/png-sync
...
Use sync version of zlib deflate method to compress png images
2018-12-22 22:15:04 -03:00
Luiz Américo
8f1bb8c744
Merge pull request #888 from blikblum/simplify-pdfpage
...
Use property getter to define PDFPage lazy dictionaries
2018-12-22 22:14:49 -03:00
Luiz Américo
52c3b45e2e
Use property getter to define PDFPage lazy dictionaries
2018-12-21 20:50:22 -03:00
Luiz Américo
4e90b87d82
Remove setTimeout call in PDFReference.finalize
2018-12-21 20:33:14 -03:00