HTML to PDF API parameters — every parameter, on one page.
98 parameters. 12 groups. 2 required for a conversion. The complete REST API surface — every type, default and enum value, in one place. Use the side navigation to jump between groups, or the search box to find a parameter by name.
Mandatory parameters
Two parameters are non-negotiable. The rest fall back to documented defaults.
key
url
html
base_url
Page size, orientation & margins
Customize the size, orientation, and margins of the generated PDF pages.
page_size
Custom
A0
A1
A2
A3
A4
A5
A6
A7
A8
Letter
HalfLetter
Ledger
Legal
page_width
page_height
page_orientation
Portrait
Landscape
margin_top
margin_right
margin_bottom
margin_left
Custom PDF header
Render a web page or HTML string as the header of every PDF page. Per-page visibility is configurable.
show_header
True
False
header_height
header_url
header_html
header_base_url
header_display_on_first_page
True
False
header_display_on_odd_pages
True
False
header_display_on_even_pages
True
False
header_web_page_width
header_web_page_height
Page numbers
Auto-generate page numbers in the footer of every page. Format, position, color, and font are all controllable.
page_numbers
True
False
page_numbers_first
page_numbers_offset
page_numbers_template
page_numbers_font_name
page_numbers_font_size
page_numbers_alignment
1 (left)
2 (center)
3 (right)
page_numbers_color
page_numbers_pos_y
Document info, security & viewer behavior
Controls how the PDF is identified by metadata, secured, and presented inside a PDF viewer.
doc_title
doc_subject
doc_keywords
doc_author
doc_add_creation_date
True
False
viewer_page_layout
0
1
2
3
viewer_page_mode
0
1
2
3
4
5
viewer_center_window
True
False
viewer_display_doc_title
True
False
viewer_fit_window
True
False
viewer_hide_menu_bar
True
False
viewer_hide_toolbar
True
False
viewer_hide_window_ui
True
False
user_password
owner_password
pdf_name
background_color
draw_html_background
True
False
page_breaks_enhanced_algorithm
True
False
single_page_pdf
True
False
Accessibility & standards
Produce tagged (accessible) PDF and target a PDF/A, PDF/X or PDF/SiqQ conformance level. Tagged output requires the Blink or Chromium engine — the WebKit engines cannot build a logical structure tree.
tagged
True
False
pdf_standard
full
pdfa
pdfa2b
pdfa3a
pdfa3b
pdfa3u
pdfx
pdfsiqq_a
pdfsiqq_b
doc_language
Electronic invoicing
Parameters for POST /api2/invoice/, which turns an HTML invoice into a ZUGFeRD / Factur-X hybrid electronic invoice. That endpoint takes multipart/form-data and accepts every parameter on this page in addition to these four.
zugferd_xml
zugferd_profile
minimum
basic_wl
basic
en16931
extended
xrechnung
zugferd_relationship
data
alternative
source
supplement
zugferd_schema
facturx10
zugferd20
How the web page is loaded
Control the converter's internal browser — viewport, timing, authentication, scripting, links, and rendering engine.
web_page_width
web_page_height
web_page_fixed_size
True
False
min_load_time
max_load_time
render_on_timeout
True
False
protocol
0 (Automatic)
engine
WebKit
Restricted
Blink
Chromium
cookies_string
cookies
auth_username
auth_password
use_css_print
True
False
disable_javascript
True
False
disable_internal_links
True
False
disable_external_links
True
False
keep_images_together
True
False
scale_images
True
False
startup_mode
Automatic
Manual
response_content_type
0
1
Bookmarks, hide elements, partial page, async, raw parameters
Generate automatic bookmarks, exclude specific elements, retrieve the PDF position of HTML elements, convert asynchronously, or pass every parameter as a single JSON blob.
pdf_bookmarks_selectors
pdf_hide_elements
pdf_show_only_element_id
pdf_web_elements_selectors
async
True
False
skip_decoding
True
False
raw_parameters
Asynchronous job polling
Used with GET /api2/asyncjob/ to retrieve a PDF generated by a previous async conversion.
job_id
Usage tracking
Used with the /api2/usage/ endpoint to read subscription status.
get_history
True
False
Ready to call the HTML to PDF API?
Read the overview & quickstart, try the no-key watermarked online demo, or grab a 7-day trial key and start with 200 free conversions. Prefer self-hosted? The same engine ships as the .NET PDF library.