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.

Fri Dec 11, 2015 11:07 am

When I try to open my generated pdf which is stored on aws s3, I only get gray screen (see screenshot) and I am not even able to download it.

jbojcic
 
Posts: 23
Joined: Mon Apr 13, 2015 3:03 pm

Mon Dec 14, 2015 5:57 am

Hi,

Thanks for your inquiry.
Can the generated pdf be opened in your local?
If it can, the cause may be file path is wrong or no access to visit the generated pdf in aws s3 or other causes cannot read the pdf file.
If it cannot, please provide us all your code about generating the pdf file.
Thanks.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Wed Dec 16, 2015 2:27 pm

I can open the same link in any other browser so link is fine. You can get the code from here
generated-pdf-not-displayed-properly-in-the-mozilla-firefox-t5655.html

Thanks.

jbojcic
 
Posts: 23
Joined: Mon Apr 13, 2015 3:03 pm

Thu Dec 17, 2015 2:26 am

Hi,

Thanks for your further information.
To investigate the issue, please help us verify if sample.pdf is generated from the following code can be opened in Safari (Mac).
Code: Select all
PdfDocument doc = new PdfDocument();
            PdfPageBase page = doc.Pages.Add();
            PdfFont font =new PdfFont(PdfFontFamily.Helvetica,10);
            page.Canvas.DrawString("This is a testing.", font, PdfBrushes.Black, new PointF(30, 30));
            doc.SaveToFile("sample.pdf");


Thank you.
Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Mon Feb 19, 2018 9:15 pm

I am having the same issue with a pdf that I am writing to a web response (See below)

Dim PDFStream As New System.IO.MemoryStream
Mypdf.SaveToStream(PDFStream)
Mypdf.SaveToHttpResponse(PDFStream, CurrentContext)
Mypdf.Close()

Opens fine in IE, Firefox, and Chrome ( in windows and lInux)
but will not open in Safari (tried both iphone and macbook)

Simply shows a gray screen.

Thanks,
Jim

Jimbo1147
 
Posts: 1
Joined: Wed Dec 27, 2017 7:05 pm

Tue Feb 20, 2018 7:55 am

Hello Jim,

Thanks for your post. Can Safari present other PDFs? Is the PDF created by Spire.Pdf? As I don't have a personal Mac machine, we will continue looking into it on 02/22/2018 when we back to office after our China Spring Festival Vacation.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Thu Feb 22, 2018 9:18 am

Hello,

Greeting from E-iceblue.
How is the issue going?
We will appreciate it if you could give us some feedback.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Thu Oct 20, 2022 8:02 am

Hi
I have generated pdf using spire.pdf QT plugins method
HtmlConverter.Convert(hmlstring, "HTMLtoPDF.pdf",

//enable javascript
true,

//load timeout
100 * 1000,

//page size
new SizeF(612, 792),

//page margins
new PdfMargins(0, 0)); //sample code
It generates pdf and successfully open in windows 10 chrome,firefox,IE but it is not open in MAC.Apple safari.
Please do the needful. It is production issue. I am having licence of spire.pdf and using latest spire.pdf version 8.8.6

Thanks.

syed.masoom
 
Posts: 8
Joined: Wed Aug 31, 2022 10:14 am

Thu Oct 20, 2022 9:50 am

Hello,

Thanks for your inquiry.
Can the result Pdf document be opened in window10? In addition, the latest Spire.Pdf is version 8.10.5, please update to it and have a test. If the issue still exists, to help us reproduce your issue and work out a solution for you, please offer the following message, thanks for your assistance in advance.
1) The html string for conveting to Pdf file.
2) The result Pdf document.
3) Your test environment, such as MacOS 12.5.
4) Application type, such as Console App, .NET Framework 4.8.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 951
Joined: Tue Mar 08, 2022 2:02 am

Fri Oct 28, 2022 9:05 am

Hi Abel,
I have get updated version to spire.pdf 8.10.5 then able to open pdf in Mac, iPad and iPhone.
Thanks for you support.

syed.masoom
 
Posts: 8
Joined: Wed Aug 31, 2022 10:14 am

Fri Oct 28, 2022 9:13 am

Hello,

Thanks for your feedback.
If you have any issue in future, just feel free to contact us.

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 951
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.PDF