Hi to everyone.
Can someone explain to me how does the Css file reference works when I export an Html to Pdf?
I tried to set the HtmlInfo.ExternalResourcePath but it seems not working…
This is the html string:
…
and I try to set the property with the following values:
“http://localhost:xxx/content/”
or “Content”
or “/Content/”
but the result is aways the same (I’m using an asp.net mvc 4 application).
Of cource the correct url for the css is http://localhost:xxx/content/site.css.
I’ve already read the documentation but it is not of great help.
Thanks in advance.
Hi Antonio,
Here you can find an example: http://1drv.ms/1lEiUKk
Thanks for your support.
Hi Antonio,
Hi Antonio,
Thanks for support.
Hi Antonio,
our issue tracking system. We will further look into the details of this
problem and will keep you updated on the status of correction. Please be
patient and spare us little time. We are sorry for this inconvenience.
The issues you have found earlier (filed as PDFNEWNET-36834) have been fixed in Aspose.Pdf for .NET 9.3.0.
Blog post for this release can be viewed over this link
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi Antonio,
In reference to the above fix, please use the new DOM approach for HTML to PDF conversion. It will help you to accomplish the task.
HtmlLoadOptions options = new HtmlLoadOptions(externalResourcesBaseUri);
options.UseNewConversionEngine = true;
Document pdfDocument =
new Document(inFile,options);
pdfDocument.Save(outFile);
Please feel free to contact us for any further assistance.
Best Regards,