We have a html file with embedded css file need to be convert to PDF. (see attached the HTML and css)
Hi David,
Thanks for your inquriy. I have tested the scenario using following code snippet using Aspoe.Pdf for .NET 11.3.0 and it is taking almost 14 seconds and bookmark urls are working fine in resultant PDF. If you want to set Page dimensions in HTML to PDF conversion then you need to use PageInfo property of HtmlLoadOptions object.
Furthermore, please note Aspose.Pdf uses system memory for processing instead temporary files on disk, so performance depends upon the system resources and size/contents of the files. Please share your sample problematic source files, we will look into these and will guide you accordingly.
Dim options As New HtmlLoadOptions("C:\Files\Files")
options.PageInfo.Width = 597.6
options.PageInfo.Height = 842.4
' Open document
Dim pdfDocument As New Document("C:\Files\Files\Data.html", options)
' Set optimization options
Dim optimization As New Aspose.Pdf.Document.OptimizationOptions()
optimization.LinkDuplcateStreams = True
optimization.RemoveUnusedObjects = True
optimization.RemoveUnusedStreams = True
optimization.CompressImages = True
' optimization.ImageQuality = 10
' Optimize resources and save the PDF
pdfDocument.OptimizeResources(optimization)
pdfDocument.Save("C:\Files\Files\HelloWorld1.pdf")
Best Regards,
Thanks for your reply. I am going to send you the sample file shortly.
Hi
ontarioservices:
Thanks for your reply. I am going to send you the sample file shortly.Our server environment is setup with proper memory and CPU;therfore, we don't have any resource issue and it should be much faster.In meantime what will be the difference between version 11.2 and 11.3?
ontarioservices:
HiI checked the attached pdf file that you sent and the bookmarks are not working!I added my html,css and generated PDF file and you can see the bookmarks are not working.Please see attached image which shows what happens when I clicked on the bookmark's link.The attached html file is not big but when I tried to convert the real html file with size over 600k it took 4 minutes to be converted.
when do you think the issue will be resolved? we can’t deliver a pdf file with broken bookmarks to client and need to have a fix as soon as possible.
Hi David,
Please see attached file with a larger html file which is 1.21 MB (it is not really big). It took 3:40 minutes to be converted to the PDF.
Have you tested the performance issue? why is that that slow?
Hi David,
Is there any update regarding those two issues? when can we expect to have the fix.
Hi David,