Thanks for sharing CSS file(s).
We have tested the scenario in our environment and observed the issues, which you have mentioned. We have logged these issues under the ticket ID PDFNET-43698, in our issue tracking system. We will further investigate the issue and keep you posted with the status of its correction.
Furthermore, the issue was occurring, because width of HTML content was more than it was in the generated PDF. So if we set page width in the PDF, being generated, the correct output can be obtained. Please use following code snippet as a workaround, to generate correct output.
// dataDir is the path where CSS files are located
var loadoptions = new HtmlLoadOptions(dataDir);
loadoptions.PageInfo.IsLandscape = true;
loadoptions.PageInfo.Margin = new MarginInfo(10, 10, 10, 10);
loadoptions.PageInfo.Width = 30 * 72; // 30 inches
Document doc = new Document(dataDir + "pdf.html", loadoptions);
doc.Save(dataDir + "pdf_out.pdf");
For your reference, we have attached an output PDF document as well, which was generated by above code snippet.
pdf_out.pdf (186.7 KB)
We are sorry for the inconvenience.