Unplanned
Last Updated: 12 May 2026 09:09 by ADMIN
Herve
Created on: 12 May 2026 09:08
Category: PDFViewer
Type: Bug Report
5
Downloaded PDF starts with JS.ReceiveByteArray instead of %PDF-

The problem with the extra characters at the beginning of the PDF document has resurfaced.

The bytes returned by GetFileAsync() don't start with %PDF-, but with JS.ReceiveByteArray. Some PDF readers and my antivirus flag the file as corrupt or suspicious. I worked around it by stripping everything before the first %PDF- occurrence in the bytes before writing to disk.

0 comments