While trying to convert html to pdf. There are unexpected page breaks occuring. Unable to avoid random page breaks.
public InputStream convertHtmlToPdf(InputStream htmlInputStream) throws Exception {
String baseName = UUID.randomUUID().toString();
String sourceFileName = baseName + ".html";
String targetFileName = baseName + ".pdf";
this.convertFile(sourceFileName, targetFileName, htmlInputStream);
try {
return this.downloadFile(targetFileName);
} finally {
this.deleteFileQuietly(targetFileName);
}
}
@ocecontent
Please share your sample input HTML and output PDF document along with the expected PDF. We will investigate and share our findings with you.
target.pdf (208.0 KB)
the expected pdf is without page breaks all over as in the html.
the expected pdf should be with out the page breaks as you will see when you render the html in a browser. I am uploading the source.html as source.pdf as it is not allowing to upload html.
source.pdf (117.2 KB)
The first pages in the target.pdf are incorrect and the actual page is expected to be image.png (58.6 KB)
@ocecontent
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): HTMLCLOUD-2140
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@ocecontent
As shared above, we have noticed the reported issue in Aspose.HTML Cloud and logged a ticket. However, please confirm you are using Aspose.HTML for .NET or Aspose.HTML Cloud; it will help us to address your issue exactly.
we have the subscription for Aspose.cloud total and we are using the Aspose.html cloud.
1 Like
@ocecontent
Thanks for the feedback. We will notify you as soon as the issue is resolved.