Commit Graph

28 Commits

Author SHA1 Message Date
Jason Nelson
a40476c0ff Spanify Hex 2024-03-15 13:10:25 +00:00
BobLd
250362e015 Ensure string characters are escaped when encoding is Utf16BE and fix #789 2024-03-11 20:00:49 +00:00
Eliot Jones
5953ca9be3 handle escaping in pdf doc encoded strings #730 2024-01-13 19:14:37 +00:00
Eliot Jones
5fadf9a388 write null token to output if null encountered #743 2024-01-11 16:20:54 +00:00
mvantzet
928c2ef2fc Prevent reading (and modifying!) non-content streams, reducing chances of PDF corruption.
Added skipping operation MoveToNextLineShowText as well.
Also duplicate the original stream's dictionary which solves disappearing elements (due to
missing SubType / BBox for example).
2023-06-21 14:54:11 +02:00
Fred Natzke
324de1da67 Fix 540 Copy page with inline image. 2023-01-16 14:27:04 +10:00
mvantzet
6125c00089 Make it possible to inject a custom ITokenWriter in PdfDocumentBuilder. 2022-12-20 10:50:41 +01:00
mvantzet
3594231c67 Introduce ITokenWriter / non-static TokenWriter class. This is the first step
in making it possible to override methods in the token writer, for example to filter
streams when writing using PdfDocumentBuilder.

The second step is injecting ITokenWriter into PdfDocumentBuilder.
2022-12-15 18:01:10 +01:00
Eliot Jones
26f028c421 #437 actually use code written for multi-part xref tables and fix bug 2022-04-22 16:32:38 -04:00
Eliot Jones
09a623d2d3 support writing non-sequential xref tables 2022-04-10 12:35:25 -04:00
Michael Plaisted
2146466a9a add extra hex char 2021-12-22 13:23:41 -06:00
Michael Plaisted
8834bff378 Revert "extra non printable char" due to github changing new lines
This reverts commit 1f6ecd7ab4.
2021-12-22 13:22:03 -06:00
Michael Plaisted
1f6ecd7ab4
extra non printable char 2021-12-22 12:36:53 -06:00
Michael Plaisted
437ad17c76 fix comment typo 2021-12-21 20:18:25 -06:00
Michael Plaisted
6b92a099b5 adjust string serialization to handle raw byte data properly 2021-12-21 20:17:03 -06:00
Michael Plaisted
79b26bb434 - strip link annotations to avoid corrupt links to non-existant pages
- fix issue with acrobat not liking same content stream on multiple pages
2021-08-22 18:06:09 -05:00
Plaisted
7f42ad0af9 refactored previous work to fit pr #250 2021-02-06 12:24:53 -06:00
InusualZ
e9c8fbbbaa Fix TokenWriter::WriteString not escaping properly special characters 2020-12-20 19:34:13 +00:00
Eliot Jones
9b7554c973 #203 enable utf16 be strings to be written to the document builder 2020-08-27 09:06:14 +01:00
Eliot Jones
19047f62ae fix name output for merged documents 2020-04-25 11:23:37 +01:00
Eliot Jones
c635b919d2 make numbers culture invariant in document builder
decimal numbers were dependent on the current thread culture for the output file. this meant values like '70.679' were output as '70,679' for cultures using a comma rather than period separator for the floating point (i.e. the whole world). this resulted in the file displaying incorrectly.
2020-02-20 13:06:12 +00:00
Eliot Jones
7c0ef111ea move classes to new projects
to make the project more useful and expose more usable classes we're rearchitecting in the following way. code used to read fonts from external file formats like truetype, adobe font metrics (afm) and adobe type 1 fonts are moving to a new project which doesn't reference most of the pdf logic. the shared logic is moving to a new flat-structured project called core. this is a sort-of onion type architecture, with core being the... core, fonts being the next layer of the onion, pdfpig itself the next. this will then support additional libraries/projects as outer layers of the onion as well as releasing standalone version of the font library as pdfbox does with fontbox.
2020-01-04 16:38:18 +00:00
Eliot Jones
d9052e1388 update readme and document public api for document creation 2018-12-28 16:55:46 +00:00
Eliot Jones
e11967b772 add flate filter to compress truetype font in output and fix some structure issues for pdf verification 2018-12-28 14:57:41 +00:00
Eliot Jones
924fc7b37f #21 support writing lines, curves and rectangles. add documentinformation to output. rename characterpath 2018-12-12 00:09:15 +00:00
Eliot Jones
3a4b7b79d1 #21 change dictionarytoken to use explicit key type, finish os/2 table for truetype, first file creation using embedded truetype font 2018-12-08 14:38:27 +00:00
Eliot Jones
d6a896dcb0 #21 enable document creation using standard 14 font to test output 2018-12-02 16:14:55 +00:00
Eliot Jones
06bee446d8 #21 create first actual pdf document based on minimal example. writer for tokens. bump language version 2018-11-28 21:54:06 +00:00