Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I exclude a HTML region from the rendered PDF document?

0
Posted

How can I exclude a HTML region from the rendered PDF document?

0

Starting with the version 6.0 you can instruct the converter to exclude a set of HTML regions from conversion. In the generated PDF document there will be an empty space in place of the excluded region. The HTML elements to be excluded can be identified by the HTML IDs of the elements or by the HTML tag names of the elements. The PdfConverter.HtmlExcludedRegionsOptions object of HtmlExcludedRegionsOptions type is used to specify the excluded regions. The HtmlExcludedRegionsOptions class has two properties public string[] HtmlElementIds { get; set; } public string[] HtmlTagNames { get; set; } that can be used to define the HTML elements excluded by ID or by tag name.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123