Repository navigation
v9.1.7
PDFjet v9.1.7, in all four ports: Java, C#, Go and Swift, kept behaviorally identical. Listed in CHANGELOG.md under v9.1.7.
Highlights
-
Its fonts come with it. PDFjet carries 71 font faces under the SIL Open Font License, so a constant such as
IBMPlexSans.Regularworks with no font files to fetch:- every European language (Latin, Greek, Cyrillic) in the main package: IBM Plex Sans and Serif (Thin to Bold, and Text) and Cascadia Mono (Light to Bold), upright and italic;
- Chinese, Japanese, Korean, Arabic, Hebrew and Thai in one add-on package: IBM Plex Sans Arabic, Hebrew and Thai, and IBM Plex Sans JP, KR, SC and TC.
| Port | Main package (European fonts) | Add-on (other scripts) | |-------|--------------------------------------|---------------------------------| | Java |
com.pdfjet:pdfjet, about 5 MB |com.pdfjet:pdfjet-fonts-world, about 41 MB | | .NET |PDFjeton NuGet, about 10 MB |PDFjet.Fonts.World, about 41 MB | | Go | in the program, 11 MB |import _ ".../resources/fonts/world", 52 MB | | Swift | productPDFjet, about 11 MB | productPDFjetFontsWorld, about 52 MB |The
PDFjet.jar(0.7 MB) andPDFjet.dll(0.9 MB) of the release zips carry none, and read them from the zip'sresources/fonts. In Go, the build tagpdfjet_nofontsleaves the fonts out, for a program with font files of its own, such as one built to WebAssembly. New: theIBMPlexSerifandCascadiaMonoconstants, andFont(objects, path)for a font added to an existing PDF. -
SVG charts drawn as a browser draws them. SVGImage now reads
textandtspanwith their positions, sizes, weights, anchors and the white halo of a label;useand symbols; arrowhead markers;stroke-dasharray,stroke-dashoffsetandclip-path;switchandsystemLanguage. What is drawn outside the image is cut off, and a gradient is drawn in the mean of its colors. Text is drawn in the embedded fonts PDFjet carries, so PDF/A and PDF/UA documents need nothing set. -
Charts.
- SimpleBarChart:
setHighlightLowest(),setHighlightHighest(),setReferenceLine(value, label)for a target or an average, andsetRoundedBars(true). Each is off unless set, so existing charts draw the same. - SimpleScatterChart:
addSeries(name), each series in its own shape and color, with a legend; andaddLinkedDot(name, x, y, uri), a point that is a link, with its name as its description for screen readers. - A chart with a range set now says how much of its data the range leaves out ("3 points outside the range"), in the chart and in its description, so an outlier can no longer vanish without a word.
- BarChart and DonutChart: the Tableau 10 palette (see Behavior changes). Value labels use near black #111111 where neither white nor ink reaches 4.5:1 contrast.
- SimpleBarChart:
-
Chinese and Japanese: a word in Latin letters is no longer cut at the end of a line; it moves whole to the next one.
-
Swift uses less memory for documents with fonts: a one-page invoice in IBM Plex Sans allocates 4.0 MB instead of 5.9. The PDFs are the same.
-
Java: the jar names its module,
Automatic-Module-Name: com.pdfjet, for programs on the module path. -
Nothing to fetch. The repository builds, tests and runs the examples as it is: the fonts are in
resources/fontsand the data files inresources/data.
Fixed
- The code review of 30 October 2026, in all four ports: drawing on read pages survives
Merge; more PDFs are read (indirect/Kids, a missing Adler-32, an indirect/Filter,/Length null); SVG files that crashed or used gigabytes are limited; 16-bit PNGs with alpha; Markup links with parentheses; large TextFrames draw in linear time; NaN and absurd sizes are errors, not hangs. - The
/Fof an embedded file's file specification is a byte string, as ISO 32000-2 asks; it was the name in UTF-16./UFkeeps the full name. Example: fornotes.txt,/Fis<6e6f7465732e747874>, where it was<feff006e006f007400650073002e007400780074>. - Markup follows CommonMark on line breaks and the spaces around them.
- Table: an image in a cell goes back exactly where it was put.
- C#, on .NET 10: an empty stream is a valid zlib stream, as on .NET 8.
- Overnight fuzzing of the readers (PDF, SVG, fonts, images, XML) before the release: 23 targets, about 729 million inputs, no crashes.
Behavior changes
Each one below can change what an existing program does.
- Fonts: Chinese, Japanese, Korean, Arabic, Hebrew and Thai are in the add-on package of each port. Example: Java
new Font(pdf, IBMPlexSansJP.Regular)with the Maven jar needscom.pdfjet:pdfjet-fonts-world:9.1.7; without it, the constructor throws, naming that line. Aresources/fontsfolder kept next to a program as in 9.1.5 moves these families intoresources/fonts/world. - Fonts: PDFjet no longer carries Source Serif 4 or IBM Plex Math. Example:
new Font(pdf, SourceSerif4.Regular)throws unless the program supplies the file; useIBMPlexSerif.Regular. - SVG text: an SVG with
<text>is drawn with its text, where it was left out. - BarChart and DonutChart draw in the Tableau 10 palette. Example: a chart that sets no colors draws its first series in blue #4E79A7, where it was navy #1F3A5F.
- A chart with values outside its range has a plot a little shorter, for the row of the note.
- SVGImage: a fill or stroke of
url(#id)that names no gradient, with no color after it, is none, as a browser draws it. Example:fill="url(#missing)"drew a black shape and now draws nothing. - SVG strokes get a miter limit of 4, as SVG says, where it was PDF's 10.
- Markup: spaces before and after a line break are not in the text. Example:
paragraph("one \ntwo")isone, a line break andtwo, where the first wasone. - Table: a sum reads each cell once, and a number has to be the whole cell; a header or footer row that runs off the page is an error. Example:
boxes 12adds nothing, where it added 12. SetLanguagewrites/Langon a plain PDF too. Example:fr-CA; unset writes none.- Example_24 with no argument draws its 10-page sample, 12 pages, where it drew 2,546. Example:
go run ./src/examples/example24 path/to/Electric_Vehicle_Population_Data.csvdraws the 2,546 pages as before. - Charts: a SimpleLineChart, SimpleScatterChart or BarChart too small for its plot, and a SimpleBarChart with no room for its bars or a name, are an error, where they drew nothing and said nothing. Java and C# throw from
drawOn; in Go and Swift the document'sComplete()andcomplete()fail. A chart with room draws as before. Example: "A SimpleLineChart of 40 by 30 points has no room for its plot: make it larger, or its title, names or numbers shorter." - TextFrame: each row is spaced from the one before by that row's tallest text, so rows with smaller inline code are evenly apart. Example: in 12 pt text with 10.8 pt code, every row is 13.87 pt below the one before, where some were 13.6 pt.
Upgrading
- Deprecated, no longer carried:
NotoSans,IBMPlexMono,JetBrainsMono,SourceSerif4,IBMPlexMath, the ExtraLight and Black weights, and the Thin, Light, Text and Medium weights of IBM Plex Sans JP, KR, SC and TC. Their constants still read the font file when it is there; the release packages before 9.1.7 have them. - The CJK constants Regular, SemiBold and Bold now name the .otf of the font, where they named the .ttf: the same font, with smaller subsets.
- The repository's
fontsanddatafolders areresources/fontsandresources/data.get-fonts-and-data.sh,get-fonts-and-data.cmdandfonts-and-data.txtare gone. - The full Electric Vehicle Population Data file (30 MB) is no longer in the repository or the packages; pass its path to Example_24 for performance testing.
PDFjet Core
The Java and .NET packages of PDFjet Core are attached below: PDFjet-ForJava-Core.zip and PDFjet-For.NET-Core.zip, with the library, the reference documentation and the examples with the PDFs they make, and the libraries alone, PDFjet.jar and PDFjet.dll. PDFjet Pro 9.1.7 adds long-term signatures (PAdES B-LT and B-LTA) and hyphenation to digital signatures, electronic invoices, the Swiss QR-bill and the EPC QR code: see pdfjet.com.