Skip to content

v9.1.7

Choose a tag to compare

@edragoev1 edragoev1 released this 05 Nov 13:12
· 256 commits to main since this release

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.Regular works 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 | PDFjet on NuGet, about 10 MB | PDFjet.Fonts.World, about 41 MB | | Go | in the program, 11 MB | import _ ".../resources/fonts/world", 52 MB | | Swift | product PDFjet, about 11 MB | product PDFjetFontsWorld, about 52 MB |

    The PDFjet.jar (0.7 MB) and PDFjet.dll (0.9 MB) of the release zips carry none, and read them from the zip's resources/fonts. In Go, the build tag pdfjet_nofonts leaves the fonts out, for a program with font files of its own, such as one built to WebAssembly. New: the IBMPlexSerif and CascadiaMono constants, and Font(objects, path) for a font added to an existing PDF.

  • SVG charts drawn as a browser draws them. SVGImage now reads text and tspan with their positions, sizes, weights, anchors and the white halo of a label; use and symbols; arrowhead markers; stroke-dasharray, stroke-dashoffset and clip-path; switch and systemLanguage. 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, and setRoundedBars(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; and addLinkedDot(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.
  • 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/fonts and the data files in resources/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 /F of an embedded file's file specification is a byte string, as ISO 32000-2 asks; it was the name in UTF-16. /UF keeps the full name. Example: for notes.txt, /F is <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 needs com.pdfjet:pdfjet-fonts-world:9.1.7; without it, the constructor throws, naming that line. A resources/fonts folder kept next to a program as in 9.1.5 moves these families into resources/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; use IBMPlexSerif.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") is one, a line break and two, where the first was one .
  • 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 12 adds nothing, where it added 12.
  • SetLanguage writes /Lang on 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.csv draws 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's Complete() and complete() 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 fonts and data folders are resources/fonts and resources/data. get-fonts-and-data.sh, get-fonts-and-data.cmd and fonts-and-data.txt are 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.