In cases when the paragraph/bullet/number is so large that it cannot fit on one page, it breaks equations into two pages if place somewhere at the end of the step. Is there a way we can stop equations being split into 2 pages? It would be great if we can evaluate it on the basis of any property.
Please find attached PDF and the html of the corresponding issue. Equation.zip (88.8 KB)
Could you please also share the sample code snippet which you are using at your side. We will test the scenario in our environment and address it accordingly.
@asad.ali Please find the code shared on the following link. The Pdf file is generated in the folder \PdfGenerationApplication\PdfGenerationApplication\PdfProcedures
We tried following simple code snippet to convert your sample HTML file into PDF and resultant PDF file seemed much better. Would you please try to use below code and let us know in case you still face any issue:
var htmlOptions = new HtmlLoadOptions(dataDir);
htmlOptions.PageInfo.Margin = new MarginInfo(0, 0, 0, 0);
var document = new Document(dataDir + "equationBreakingHtml.html", htmlOptions);
document.Save(dataDir + "static.pdf");
Thank you Asad for your prompt reply. Is there any way to fix this issue beside setting margins to 0? We set the margins according to our business calculations and cannot set them to 0. It would be great if there could be any property indicating that page is about to end so that we shift the equation to another page. Any other solution would be appreciated as well.