PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 6:26 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Aug 30, 2018 2:48 pm 
Offline

Joined: Thu Aug 30, 2018 2:35 pm
Posts: 1
I convert Html string to pdf using below code.
Code:
var pdf = TheArtOfDev.HtmlRenderer.PdfSharp.PdfGenerator.GeneratePdf(body, PdfSharp.PageSize.A4);
                   pdf.Save(ms);


it save success fully, and it can open chrome and adobe reader. but when i open using c# winform Devexpress pdf viewer or aws s3 , it can not be opened directly.

when i download from s3 and view this pdf property, it show below warning.
Attachment:
image (1).png
image (1).png [ 14.14 KiB | Viewed 3310 times ]


please healp me how to solve it.


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 30, 2018 2:59 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
ArulMurugan wrote:
please healp me how to solve it.
Can you open it after checking the "Unblock" checkbox and pressing Apply?

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 146 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group