Since 02.02.2021 my PDF files are broken.
The font size is minimal bigger. But that leads to the problem, that the document expanded in high and width. So the bottom part is placed on a second page.
There was no solution by AppSheet Support. So I had to change all my templates to work right again.
But before changing I saved a copy. Maybe AppSheet will find the bug and I have to restore the old versions.
Somewhere between 02.12.2021 15:21 and 04.12.2021 17:17 German Time, AppSheet implemented a new PDF Creator Version: Skia/PDF m96. You can see it in the PDF’s properties.
Before
After
This time the font size and the column width didn’t change, but the row height.
On the left side you see before; on the right side after. (800% Zoom)
Maybe the reason is that the Line Spacing is now interpreted differently? As you can see on the image, with the new Skia/PDF m96, the line spacing is a bit bigger.
As you can imagine, this breaks the PDF file, especially if you use it for label printing.
I will ask AppSheet support if they can fix it, or if we have to change our templates every several months
I looked into this and it seems like you were right about the dates. On December 2nd the renderer did update. As you know the PDFs are created by rendering HTML to PDF, and this update was the equivalent of updating from Chrome version 95 to 96. I can see the same change as you where some of my spacing is different than before.
Unfortunately we can’t change this back. We need to be using up to date versions of the chromium renderer both for security reasons, and also consistency with the input. Since we support raw HTML templates as input for generating a PDF we need the renderer to be an up to date version so it matches the input inside of a browser normally. Another thing to note is Docs and Drive does a very similar thing, and so us staying on an up to date version of the renderer ensures that the resulting PDF output will more closely match the input from Docs. I verified this today by creating a PDF with both the old and new versions and comparing it to the view in Docs as well as the PDF created when you print from Docs. The new output was a closer match to what I saw in Docs as well as the PDF created by Docs when I “printed” it.
I’m sorry for the inconvenience this has caused. In general I think it’s pretty rare for Chromium to make rendering changes that are as visible as this, so I don’t think you’ll have to frequently update your template.
Thank you @Greg_Denton for your fast reply. OK I will update my templates. But please keep in mind, that I had to update them in February and in March. (see my previous posts) So this will be the 3rd time in one year. And it’s vital, because the PDF was always broken.
Do you think you could inform us before / when you update the rendering?