Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Mar 01, 2018 2:50 pm

Hi,

It's weird, on some pdf, the text are not rendered when I use SaveAsImage.

I can't provide a file since their are invoices and I'm pretty sure the accountants don't want me to spread invoices of the company online.

Anyone have an idea what it could be? Known bug?

Here's my method :

Code: Select all
public static List<System.Drawing.Image> GetPagesAsImage(Stream inputFile)
        {
            var images = new List<Image>();

            var doc = new Spire.Pdf.PdfDocument();
            doc.LoadFromStream(inputFile);

            for (var i = 0; i < doc.Pages.Count; i++)
            {
                images.Add(doc.SaveAsImage(i));
            }

            doc.Close();
            return images;
        }

kevinperron
 
Posts: 2
Joined: Thu Mar 01, 2018 2:47 pm

Thu Mar 01, 2018 3:57 pm

I think the problem could be related to the font.

The fonts seems to be some odd fonts named f4 f5 f6.

kevinperron
 
Posts: 2
Joined: Thu Mar 01, 2018 2:47 pm

Fri Mar 02, 2018 3:52 am

Hi,

Thanks for your inquiry.
I downloaded EU-F4, EU-F5 and EU-F6 fonts to test your case with our latest Spire.PDF Pack(Hot Fix) Version:4.2.8, but didn't reproduce your issue on my side. To help us locate your issue accurately, please provide your testing pdf file, you could send it to us (support@e-iceblue.com) via email. We promise to keep your document confidential and we will not use it for any other purpose. You can remove sensitive information from your document or replace sensitive information with dummy data.
Look forward to your reply.

Sincerely,
Nina
E-iceblue support team
User avatar

Nina.Tang
 
Posts: 1187
Joined: Tue Sep 27, 2016 1:06 am

Return to Spire.PDF