When converting a html file to a pdf the images are not appearing in the resultant pdf. The hyperlink to the image is a full path and it is not secured at all.
Attached is an example file.
The code we are using is:
License asposeLicence = new License();
asposeLicence.SetLicense("Aspose.Total.lic");
//HtmlLoadOptions options = new HtmlLoadOptions(sourceDirPath);
HtmlLoadOptions options = new HtmlLoadOptions(documentSourceDirectory);
resPdf = new Document(sourceFilePath, options);
Common.DeleteDestinationPDF(ref destinationPdfPath);
//Save converted document to destination location
resPdf.Save(destinationPdfPath);
result = Common.GetDetails(getFileBytes, getPageCount, isTempFile, "", destinationPdfPath, resPdf);
NotWorkingImage.zip (214 Bytes)
Thanks for your help
@gregglinnell
To ensure a timely and accurate response, please attach the following resources here for testing:
- Please attach the output PDF file that shows the undesired behavior.
- Please attach the expected output PDF file that shows the desired behavior.
- Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.
PS: To attach these resources, please zip and upload them.
AsposeProblem.zip (326.4 KB)
Attached is a zip file with an example Forms App using the latest version of Aspose.Pdf. Included is the html file to convert (if you open it, the linked image appears). When converted the page is blank (I have included an example pdf that is blank, and was created by the test app).
@gregglinnell
We have logged this problem in our issue tracking system as PDFNET-52143. You will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.