PDF creation changed font size

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.

Before

After

I took a look at the properties. It seems to be the case since there is a new version.
Qt 4.8.6 โ†’ Qt 4.8.7

Before
3X_3_1_310f2b8b87714454766a32938fddda745a71e8b1.png

After
3X_7_6_764ff8efae86c8def5800a2f9ec14bcf7c1c38ab.png

@Sanmay_Jain @Phil @Harsh_Ch @Aleksi

appName=Wartungsliste_Test-38452-651676
Workflow: Rapport PDF KD

2 10 914
10 REPLIES 10

Steve
Platinum 4
Platinum 4

Please contact support@appsheet.com for help with this.

Iโ€™ve contacted support.

By the way there is the same wrong output, no matter if I use โ€œSystem Defaultโ€ or โ€œSystem Mandrillโ€.
3X_d_b_db21dbce8a4490c619bb866ee599f79f3acaab7c.png

I saw that it may have to do with the Column width and the Minimum row height that you can set in the Table properties.

It seems that itโ€™s interpreted differently now. The columns get a bit bigger than before.

image.png

But I also saw that Characters have a bigger size now.

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.

Now they again donโ€™t fit because of a new PDF version

3X_b_6_b6c469f2174a357126df90c609081021db4e0243.png

3X_c_c_cc15685a9044a335e08bafafab7dcef2f9d69a2e.png

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
3X_d_9_d900fd8d930c7efe66c3efff493789e46184c6b2.png
After
3X_a_a_aae118ef3f7d496625c0113301df32df40967a94.png

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)

These are the Table properties:


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.

These are the Line Spacing properties:
3X_1_b_1b05bda82fe7263a5220ef4b89db65a8e4717a34.png

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

Escalated.

Hi @Fabian,

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.

โ€” Greg

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?

I was able to fix it by reducing the line spacing from 1 to 0.9.

Top Labels in this Space