43 Commits

Author SHA1 Message Date
Michael R Sweet
eff02198ab
Clean up pdfioinfo example changes. 2025-02-13 19:25:44 -05:00
Thierry LARONDE
d032483ed4
Merge branch 'michaelrsweet:master' into info 2025-02-12 15:54:47 +01:00
Michael R Sweet
4e89137689
Use pkg-config for compiler options.
Fix some issues with the image2pdf example code.
2025-02-11 20:22:36 -05:00
Michael R Sweet
5b5de3aff6
Update pdf2txt example to support font encodings. 2025-01-28 14:26:33 -05:00
Michael R Sweet
6c68b9fa5a
Add URLs and copyrights for Code 128 font and ProPhoto ICC profile (Issue #91) 2025-01-24 09:56:51 -05:00
Michael R Sweet
fca4dbd395
Make sure we have license files for the example fonts (Issue #91) 2025-01-23 13:03:23 -05:00
Thierry LARONDE
8b2b013b36 Extend by adding pdfioGetModDate and extend the pdfioinfo example
When exploring a PDF, it may be convenient to have the typical
informations delivered by some "Document Properties"---and some more
about the MediaBox(es).

So just add the function to get the ModDate and extend the
pdfioinfo example as an example of what the library do have
and pdfioinfo as a debugging tool also.

Signed-off-by: Thierry LARONDE <tlaronde@kergis.com>
2025-01-18 11:25:36 +01:00
Michael R Sweet
3bc041e6d3
Delay loading of the Info object and clean up the pdfioinfo example (Issue #87) 2025-01-17 16:50:30 -05:00
Michael R Sweet
fbd61d1fe9
Bump copyright and version, changelog for example makefile fix. 2025-01-10 14:54:11 -05:00
Thierry LARONDE
31c3400f23 examples/Makefile: libm is not added by default by all
-lm has to be added for system/compilers that don't add the lib by
default (the case on NetBSD).
2025-01-10 20:18:06 +01:00
Michael R Sweet
6d65a609e5
Update documentation and examples makefile. 2024-12-26 15:12:56 -05:00
Michael R Sweet
fd8427d68a
Add pdf2text example docos, install examples to doc directory. 2024-12-22 21:29:32 -05:00
Michael R Sweet
ed1421287f
Move pdfiototext to examples. 2024-12-22 19:00:17 -05:00
Michael R Sweet
aa91b141a8
Finalize md2pdf example docos. 2024-12-22 12:09:03 -05:00
Michael R Sweet
52b508bdd2
Block quote rendering changes. 2024-12-21 14:15:48 -05:00
Michael R Sweet
41ebe39f3b
Save work. 2024-12-21 14:04:27 -05:00
Michael R Sweet
62df5f5c78
Add CODE_PADDING and use it for code blocks. 2024-12-21 12:16:36 -05:00
Michael R Sweet
a1237db52c
Use regular font for whitespace before monospace text. 2024-12-21 11:50:35 -05:00
Michael R Sweet
a24fdee335
Fix an uninitialized pointer issue in format_block, and some margin issues on the top of the page. 2024-12-21 11:31:54 -05:00
Michael R Sweet
e4081f2ba3
Add table-of-contents outline. 2024-12-20 07:18:10 -05:00
Michael R Sweet
5bc7ebee2c
Add actual example programs from prior examples, start documentation updates. 2024-12-19 16:43:21 -05:00
Michael R Sweet
53967552df
Add some documentation on the code128 example.
Clean up the code128 code a bit and use the Helvetica font for the text.

Add support for writing to a PDF file on the command-line vs. just doing
redirection.
2024-12-15 22:52:03 -05:00
Michael R Sweet
f8639fbd64
Add "need_bottom" argument to keep the following block on the same page. 2024-12-15 18:17:31 -05:00
Michael R Sweet
9020e92928
Make sure we have room for at least two lines in a paragraph or code block at the bottom of the page. 2024-12-15 17:46:03 -05:00
Michael R Sweet
48e6597337
Make block quote bar a thick orange so it stands out. 2024-12-15 17:35:16 -05:00
Michael R Sweet
2c8a996875
Add green bar next to block quote text (for notes). 2024-12-15 11:27:32 -05:00
Michael R Sweet
62fdf48ff9
Fix links for code text, background of code blocks. 2024-12-15 11:00:30 -05:00
Michael R Sweet
294f5e07c5
Add support for internal hyperlinks. 2024-12-15 10:23:59 -05:00
Michael R Sweet
4baafde74b
Add support for remote URL links. 2024-12-14 19:56:45 -05:00
Michael R Sweet
2d175fdf70
Drop Apache badge (not needed), rearrange functions in alphabetical order, and reset top margin for list items to 0. 2024-12-14 10:18:01 -05:00
Michael R Sweet
56a0f290aa
Start work on example documentation. 2024-12-13 23:12:48 -05:00
Michael R Sweet
2e5319a623
Fix widths for base fonts (was converting back to UTF-8 instead of preserving
the CP-1252 character set.
2024-12-13 19:56:00 -05:00
Michael R Sweet
d3d6683041
Add support for measuring base fonts (Issue #84)
Update md2pdf example code to support using embedded TrueType or PDF base
fonts.
2024-12-13 17:39:16 -05:00
Michael R Sweet
0d08dd5f1b
Add support for tables. 2024-12-13 15:17:25 -05:00
Michael R Sweet
00c9905317
Update rendering of checkboxes. 2024-12-12 13:07:09 -05:00
Michael R Sweet
b8b9d7ef8a
Split out code block formatting and add light gray background behind code.
Add support for hard breaks.

Add (preliminary) support for checkboxes.
2024-12-12 11:44:53 -05:00
Michael R Sweet
63cdb13b1b
Fix image name property - forgot to call pdfioStringCreate* APIs for formatted
string...
2024-12-12 07:11:25 -05:00
Michael R Sweet
72e55b5bd1
Refactor block formatter to split content into lines and render the lines.
Also cache the current font for the whole page.
2024-12-11 20:14:32 -05:00
Michael R Sweet
dc65eb8d2f
Save work on image support. 2024-12-11 15:37:03 -05:00
Michael R Sweet
a39b01ec9c
Add metadata support. 2024-12-10 18:53:51 -05:00
Michael R Sweet
4b29c9a1c2
Add text color and optimize text groups into whole blocks.
Add UNICODE_VALUE define to allow toggling between Unicode and ISO-8859-1 modes.
2024-12-10 18:41:23 -05:00
Michael R Sweet
5a4afad566
Save work on markdown formatting example code. 2024-12-10 16:35:12 -05:00
Michael R Sweet
eb9dad9b51
Add Code 128 example code. 2024-12-09 19:13:48 -05:00