PdfSharpCore icon indicating copy to clipboard operation
PdfSharpCore copied to clipboard

Font changed to a different when opening existing PDF

Open anddrzejb opened this issue 3 years ago • 0 comments

Hi

So I load an existing PDF document using

PdfDocument document = PdfReader.Open(new MemoryStream(pdfStream), PdfDocumentOpenMode.Modify);

The document has these fonts defined: image

However when I save the pdf, the font is different: image

Am I doing something wrong or this behaviour is expected? How can I ensure PdfSharpCore won't change the fonts (or anything visual for that matter)?

The PDF was generated on the same machine by Playwright - actually, in the same process.

anddrzejb avatar Jun 22 '22 19:06 anddrzejb