I am using the Aspose.PDF dll to convert a form on a Webpage to PDF. If an element if split across multiple pages the background colour is not taken across on some occasions, but on others it is. (Please see pictures)Aspose.1.PNG (18.6 KB)Aspose.2.PNG (27.5 KB)
Thank you for contacting support.
Would you please share source and generated ZIP files along with narrowed down code snippet so that we may try to reproduce and investigate it in our environment. Please ensure using Aspose.PDF for .NET 19.1 before sharing requested data.
ASPOSE-BackgroundMultiPage.zip (35.8 KB)
Thank you for getting back to me so quick, attached is what you requested, please let me know if you require anything else.
Thank you for sharing requested data.
We have used below code snippet with Aspose.PDF for .NET 19.1 and generated PDF file has been attached for your kind reference. Please mention page number and text where you notice the problem as compared to source HTML file, along with screenshots so that we may investigate further to help you out.
//Pass basepath as parameter HtmlLoadOptions options = new HtmlLoadOptions(dataDir); options.PageInfo.Margin = new MarginInfo(0, 10, 0, 10); options.PageInfo.IsLandscape = false; Document pdfDocument = new Document(dataDir + "7812.htm", options); pdfDocument.Save(dataDir + "7812.pdf");
Sorry in the delay getting back.
The background on page 1-2 doesn’t span across (see screenshot1)Screenshot1.PNG (7.3 KB)
Also the background on page 2-3 this doesn’t cover all the text and spans on to the next page and leaves a big gap (see screenshot2) Screenshot2.PNG (7.5 KB)
and again on page 13 -14 (see screenshot 4) Screenshot4.PNG (7.7 KB)
This works perfectly on pages 10 - 11 (see screenshot3)
Screenshot3.PNG (9.2 KB)
Thank you for elaborating it further.
We have logged a ticket with ID PDFNET-45931 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.
We are sorry for the inconvenience.
Is there any update on this ticket.
Thank you for getting back to us.
We are afraid it is currently pending for investigations owing to previously logged and critical tickets. It will be scheduled on its due turn which may take some more months. We appreciate your patience in this regard.
However, we also offer Paid Support, where issues are used to be investigated with higher priority. Our customers, who have paid support subscription, report their issue there which are meant to be investigated urgently. In case your reported issue is a blocker, you may please consider subscribing for Paid Support. For further information, please visit Paid Support FAQs.