Collapse
Expand
HTML to PDF Converter
Getting Started with HTML to PDF
HTML Content Destination and Scaling in PDF
Convert the Current HTML Page to PDF
Convert a HTML Page to PDF in Same Session
Merge Multiple HTML Pages into a Single PDF
Merge HTML with Existing PDF Documents
Partially Convert of a HTML Page to PDF
Repeat HTML Table Header and Footer in PDF
Headers and Footers
Page Breaks Control
Screen and Print Media Types
Conversion Triggering Modes
Hierachical Bookmarks
Table of Contents
Live PDF Forms
HTML5 Features
HTTP GET and POST, Proxy Options
HTTP Headers and Cookies
Fonts Embedding
HTML Elements Location in PDF
HTML Elements Visibility in PDF
Use API to Select HTML Elements to Hide
Define in HTML the Elements to Hide
URI Links in PDF
Internal Links in PDF
File Links and Attachments
Text Notes in PDF
PDF Actions
HTML to PDF Elements
HTML to Image Elements
Images Quality in Generated PDF
Flash and Extensions Support
Watermarks and Stamps
PDF/A and PDF/X Standards
CMYK and GrayScale Color Spaces
PDF Viewer Preferences
PDF Security Features
HTML to Image Converter
PDF Creator
PDF Editor
Live Demo
Description
Sample Code
Select in HTML the Elements to Hide in Generated PDF
Winnovative HTML to PDF Converter allows you select directly in HTML the elements to exclude from rendering to PDF by setting the 'data-exclude' attribute on HTML elements you want to exclude. The converter does not reflow the HTML content when you exclude an element from rendering and the place where the element would be normally rendered remains blank. If you want to reflow the HTML content when the HTML element is hidden, you have to set 'display:none' style for HTML element, eventually creating two separate stylesheets for screen and for print. The Full Description and a Code Sample can be accessed from the top tabs.
Use TCP/IP Server
IP Address:
Port:
Use Web Service
URL:
Service Password:
Convert HTML with Exclude Attributes
Convert URL or Local File
HTML String with Exclude Attributes
<!DOCTYPE html> <html> <head> <title>Select in HTML the Elements to Hide in Generated PDF</title> </head> <body style="font-family: 'Times New Roman'; font-size: 14px"> <span style="font-size: 24px; font-weight: bold; color: navy">Select the HTML Elements to Hide Using 'Data-Exclude' Attribute</span><br /> <br /> <span style="font-size: 14px; color: black">The following image will be excluded from rendering in the generated PDF: </span> <br /> <br /> <!-- HTML element for to exclude from rendering --> <img data-exclude="true" alt="Logo Image" src="img/logo.jpg" id="imageHtmlID" /> <br /> <br /> <a style="font-size: 18px; font-weight: bold; color: navy" href="http://www.winnovative-software.com" id="linkHtmlID">Visit Winnovative HTML to PDF Converter Website</a> </body> </html>
Base URL