Queries |
Response |
I need to crop the HTML or remove some bits like the navbar from appearing in the saved PDF document. Is it possible to specify document options for adding or removing elements, or even starting the print to pdf at a lower height? |
We can able to crop a PDF page from an existing PDF document in our library. We have created a sample with simple HTML and after converting the PDF document, we can crop the page by using PdfTemplate in that existing PDF document. We could not crop the element from the HTML file in our converter. Please refer the below sample and output document from a link,
Note : We can set the Top margins to our converter settings to print the HTML content as PDF.
Please refer the below links for more information about Partial HTML to PDF conversion,
Partial HTML to PDF : https://help.syncfusion.com/file-formats/pdf/convert-html-to-pdf/webkit?cs-save-lang=1&cs-lang=asp.net%20core#partial-webpage-to-pdf
Please try the above suggestions in your end and let us know the result.
|
I've tried to make use of PdfJavaScriptAction however it doesn't seem to do anything, and I couldn't find any documentation for it, either. |
We can add JavaScript action to PDF document by using our library. Please refer the below links for more information about JavaScript Action,
Please let us know if you need any further assistance with this.
|