A New PDF Filling Engine
We've built a new engine to fill PDF forms, and we're moving every account to it. New accounts use it now, and we're moving existing accounts over gradually. Some things about how DocSpring generates PDFs also change for every account now, including one that can make a submission invalid: dates that aren't real dates.
What the New Engine Changes
Your existing templates print their text where they do today. When your account moves to the new engine:
- Text in any language in use today prints, and so do emoji and symbols. Characters a field's font doesn't have printed as empty boxes.
- Right-to-left text with English words or numbers in it prints in the order it reads, also when it wraps onto more lines. If you send text reversed to work around the old order, send it in its normal order. Read more in Right-to-Left Languages.
- Editable PDFs show each field's value the same way in every PDF viewer, including Cyrillic, Chinese, Hebrew and other text that viewers showed only after someone clicked the field.
- QR codes, barcodes and SVG images print as vectors, so they stay sharp at any size.
- Audit trails print signers' names in any language.
If a PDF looks different from what you expect after your account moves, please email support@docspring.com.
Dates That Aren't Real Dates Are Rejected
On PDF templates, a submission with a date field value that isn't a real date is now invalid, with an error for the field, instead of printing a different date. For example, 2024-02-30 printed as March 1. The submission's state is invalid_data, as for other invalid data.
These values are rejected: a day its month doesn't have, a month, day or time out of range, a year with fewer than four digits, and a weekday or time with no date (unless the field's format prints only a time, like %H:%M). API v1 still takes a two-digit year in a date like 05/07/24, and saves it with four digits. A value with no date in it, like N/A, still prints nothing. HTML templates, Word templates and page designs print date values as they're sent, except in a date form field that a signer fills in, where the signer gets the same error on the signing page.
We recommend sending dates as YYYY-MM-DD. Read more in Field Data Types.
Justified Text
Text fields in PDF templates can now be justified: each line of a paragraph stretches to the width of the field, except the last. Choose Justify in the field's alignment options in the template editor, or set "alignment": "justify" on a field with the template API. Visual forms show justified fields the same way. Read more in Field Display Types.
Open Fonts
Fields in Arial, Helvetica, Times New Roman, Courier New, Calibri, Georgia and Menlo print in open fonts with the same character widths (Liberation Sans, Serif and Mono, Carlito, Gelasio and DejaVu Sans Mono), on both engines, so text fits where it did. Where the PDF used the standard Helvetica, Times or Courier font, it still does. A typed signature in a script font whose licence didn't let us keep it prints in Mrs Saint Delafield.
Other Fixes
- A value split across linked fields is formatted as a text field's value: a date in the field's date format, and false as the field's false text.
- Right-to-left text with a phrase wrapped in Unicode isolates (U+2066 to U+2069), like "S&P 500" inside a Hebrew sentence, now keeps that phrase in order, on both engines. Before, its digits could move. Read more in Right-to-Left Languages.
- An animated GIF or a multi-page TIFF prints its first frame. The submission failed.
- A field with a color or typeface we can't draw (like
transparent, or a font we don't have) prints with the template's defaults, and a field with no width or height fails the submission at once, with a message naming the field. Before, these submissions kept retrying before they failed. - Saving a PDF template, in the template editor or with the template API, rejects a new size, color or typeface we can't draw, with an error naming the field. Values a template already has aren't checked, so older templates still save.