I have an existing html file with hyperlinks to content in same file. Below is a sample of the html in the file.
Hi There,
Do you have any timeline on when the issue will be fixed? Also what are the options I have to get a priority patched package for this? It will be great for me to set the delivery expectation right as this is a big issue in my current work.
Any update on this issue?
Hi,
Hi support.
Any update on ticket PDFNET-42643 ? We are waiting for resolve that issue. Thanks
Thank you for getting back to us.
We are afraid PDFNET-42643 is still pending for investigations owing to previously logged and critical tickets. We have recorded your concerns under respective ticket and its priority has been raised to next level. We will let you know as soon as some significant updates will be available in this regard. We appreciate your patience and comprehension in this regard.
Hi I am doing html to pdf conversion, for that first I saved html into xls (we just changed the file extension) format first.(but internally it is html file format) then converting into pdf using Aspose.PDF. In html page I have html table and i want the header of table to be repeated in all the pages of pdf . For e.g row number 1 to 3 of html table OR Html header tag to be repeated in all the pages of pdf . Is it possible ? or if there is any work around to handle it ?
Or Can we convert directly from HTML to PDF with repeat headers, styles etc.
Please suggest. I am using aspose.pdf version 18. Eagerly waiting for the response. Thank You.
Thank you for contacting support.
You may convert the HTML to PDF with Aspose.HTML for .NET as explained in HTML to PDF Conversion.
To make HEADER content repeat on every page before tables content, it should be placed inside thead
element:
<table>
<thead>
<tr>
<td>
This content is repeated.
</td>
</tr>
</thead>
<tbody>
<tr>
<td>
Table content.
</td>
</tr>
</tbody>
</table>
In case this does not help then please share the source and generated files along with narrowed down code snippet so that we may investigate further to help you out.
Thanks for the reply.
I have tried above option using Aspose.HTML for .NET . But header is not repeating in every page of pdf.
I have attached html input file and output pdf file.Files.zip (117.3 KB)
Below is code for i am using for rendering html to pdf.
string dir = @“directoryName”;
string FileName = “HCP_Fees_for_Services_and_Consultancy_20181114114513242_copy.html”;
string inputfileName = dir + FileName;
string outputfileName = dir + “checkdatasa_copy.pdf”;
var width = Aspose.Html.Drawing.Unit.FromMillimeters(297);
var height = Aspose.Html.Drawing.Unit.FromMillimeters(420);
var pageSizeA3 = new Size(width, height);
var margins = new Margin(
Aspose.Html.Drawing.Unit.FromMillimeters(15), // left
Aspose.Html.Drawing.Unit.FromMillimeters(10), // top
Aspose.Html.Drawing.Unit.FromMillimeters(15), // right
Aspose.Html.Drawing.Unit.FromMillimeters(20));// bottom
HTMLDocument hTMLDocument = new HTMLDocument(inputfileName);
var options = new PdfRenderingOptions
{
PageSetup = { AnyPage = new Aspose.Html.Drawing.Page(pageSizeA3, margins),
AdjustToWidestPage = true}
};
PdfDevice pdfDevice = new PdfDevice(options,outputfileName);
var renderer = new HtmlRenderer();
renderer.Render(pdfDevice, hTMLDocument);
Thank you for sharing your findings.
We have been able to reproduce the issue in our environment. A ticket with ID HTMLNET-1629 has been logged in our issue management system for further investigation and resolution. We will notify you as soon as the ticket will be resolved.
We are sorry for the inconvenience.
Hi Support,
Any update on ticket HTMLNET-1629 ? We are waiting for this issue to resolve.
Can you give estimate time for this ticket to get resolved?
Thanks
The issue has recently been logged in our issue management system and is currently pending for investigations which may take a few months to resolve owing to previously logged tickets. We will let you know as soon as some ETA or significant updates will be available in this regard. We appreciate your patience and comprehension 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.