cloudformatter format requests: 1,760,781    pages delivered: 4,644,815

PDF Properties

xportability LLC

PDF Properties


Using a custom set of XML tags inside your HTML, you can insert both custom metadata as well as instructions for how the PDF would be viewed in a PDF viewer application (subject of course to that application supporting those features).


You use the (optional) tag <pdfproperties> and within that tag you can insert <metainfo> and <pdfpreferences> sections as shown in the instructions below. Within the <metainfo> tag, you can add <prop> tags with @name, @value attribute pairs with the data you wish to store in the PDF metadata. Anything without one of the recognized, standard PDF names (author, title, subject, creator, keywords) are stored in custom metadata in the PDF.

The <pdfpreferences> section allows you to insert one or more <pref> tags with specific @name, @value pairs that control the way the resulting PDF is displayed with a viewer that supports standard PDF view attributes. The support name, @value pairs are listed below and grouped into all the available categories:

General PDF Options

These options let you control some general information about the generated PDF.

bookmarks - sets whether PDF bookmarks are generated or not. The default is "false" for Cloudformatter. You can set @value to "true" if you want bookmarks in PDF. Note that bookmarks are only generated for interpreted hierarchical information. All h1 elements and there following h2 elements and so on. Skipping levels will break the sequence and the bookmarks will not be correct.

pdf-version - sets the PDF version number. The default is version 1.5 for Cloudformatter but you set @value to values like "1.3", "1.4", "1.6" or "1.7" if you wish to change the version. Be aware thar some other features could be disabled by setting the version too low.

compress - sets whether the PDF is compressed or not. The default is "true" for Cloudformatter. You can set @value to "false" if you want uncompressed PDF.

linearize - sets whether the PDF is linearized or not. The default is "false" for Cloudformatter. You can set @value to "true" if you want to optimize a long PDF for web view.

PDF View Options

These options let you control how the PDF when opened appears to the end user.

view-mode - Choose from one of the following:

  • auto - If there are bookmarks in the document, the bookmarks pane is displayed. Otherwise, all auxiliary panes are hidden.
  • show-none - All auxiliary panes are hidden.
  • show-bookmarks - The bookmarks pane is displayed.
  • show-thumbnails - The thumbnails pane is displayed.
  • full-screen - The document is displayed in full screen-mode.

initial-zoom - Choose from one of the following:

  • auto - Page scaling is not specified.
  • fit - The page is scaled to fit completely into the view port.
  • fit-width - The page is scaled so that its width matches the width of the view port.
  • fit-height - The page is scaled so that its height matches the height of the view port.
  • ### or ####% - The page is scaled by the number or percentage specified.

page-layout - Choose from one of the following:

  • auto - Uses settings of viewer application.
  • single-page - Displays one page at a time.
  • continuous - Displays pages continuously in one column.
  • two-columns-left - Displays pages continuously in two columns, with odd-numbered pages to the left.
  • two-columns-right - Displays pages continuously in two columns, with odd-numbered pages to the right.
  • two-pages-left - Displays pages in two columns, by two pages at a time, with odd-numbered pages to the left.
  • two-pages-right - Displays pages in two columns, by two pages at a time, with odd-numbered pages to the right.

viewer-preferences - A comma separated list of the following possibilities:

  • hide-toolbar - Hides the viewer application's tool bars when the document is active.
  • hide-menubar - Hides the viewer application's menu bar when the document is active.
  • hide-window-ui - Hides user interface elements in the document's window (such as scroll bars and navigation controls), leaving only the document's contents displayed.
  • fit-window - Resizes the document's window to fit the size of the first displayed page.
  • center-window - Positions the document's window in the center of the screen.
  • display-document-title - Controls whether the window's title bar displays the document title taken from the "title" metadata field.

PDF Security

These options allow you to specify owner and user security in the PDF output. User-level security can inject a password to be used to open the PDF, while owner-level security can control what can be done with the PDF (like printing it or copying the data from it).

userpassword - Sets the user password that must be entered to view the PDF. There are no options, the @value passed is the password to be used.

ownerpassword - Sets the owner password that must be entered to enable advanced processing of the PDF. There are no options, the @value passed is the password to be used. An ownerpassword is used to lock down certain privledges that an owner will grant to a recipient of the PDF. Without the owner password, recipients can be restricted from certain things. By default they are restricted from everything, and you can then specify what additional things you allow by using userpriviledges.

userpriviledges - A comma separated list of the following possibilities:

  • print - Enables printing the document.
  • modify - Enables editing the document.
  • copy - Enables copying text and images from the document to the clipboard.
  • annotate - Enables adding notations to the document and changing the field values.

PDF Pre-Press Options

These allow you to specify crop marks, bleeds and registration marks to be applied to the PDF.

crop-offset - specify offsets from the meaningful content on the page to the edges of the physical media (/MediaBox entry in the PDF page dictionary). Its value is a series of 1 to 4 length specifiers that set offsets from the edges of the page area to the corresponding edges of the /MediaBox. Rules for expanding the value are the same as for the padding property in CSS.

bleed - specify the bleeds — an extra space around the page area into which the contents of the page may protrude (/BleedBox entry in the PDF page dictionary). Its value is a series of 1 to 4 length specifiers that set offsets from the edges of the page area to the corresponding edges of the /BleedBox. Rules for expanding the value are the same as for the padding property in CSS.

crop-mark-width - defines line width for the crop marks, setting it to 0 disables drawing of crop marks.

bleed-mark-width - defines line width for the bleed marks, setting it to 0 disables drawing of bleed marks.

printer-mark - specify additional SVG images to be drawn in the offset area surrounding the page (specified by crop-offset and bleed parameters). Printer marks are clipped to the outside of the bleed rectangle. The @value is a URL to an SVG you have. This sample has two URLs (one for a colorbar and one for a registration mark) you can also use if you like.

The following code is what is behind this page for producing the PDF. Of course, you would only see the things supported by your PDF viewer you use. If you wish to see them all in action, then use "download" and Adobe Reader to view the PDF.


Recent changes in some browsers will not treat this XML as XML. Instead it tries (incorrectly) to not close tags. For best results, be sure to use open and close tags and not a self-closing tag.

<pdfproperties style="display:none;">
        <prop name="author" value="Xportability LLC"></prop>
        <prop name="title"
            value="Xportability Cloudformatter: Showing Custom
            PDF Properties"></prop>
        <prop name="subject" value="A Cloudformatter Document"></prop>
        <prop name="creator" value="css2pdf@cloudformatter.com"></prop>
        <prop name="keywords" value="CSS, PDF, Cloudformatter"></prop>
        <prop name="custom1" value="value1"></prop>
        <prop name="custom2" value="value2"></prop>
        <prop name="custom3" value="value3"></prop>
        <prop name="custom4" value="value4"></prop>
        <pref name="bookmarks" value="true"></pref>
        <pref name="pdf-version" value="1.6"></pref>
        <pref name="view-mode" value="auto"></pref>
        <pref name="initial-zoom" value="fit-height"></pref>
        <pref name="page-layout" value="two-columns-left"></pref>
        <pref name="viewer-preferences" value="display-document-title"></pref>
        <pref name="crop-offset" value="0.5in"></pref>
        <pref name="crop-mark-width" value="1px"></pref>
        <pref name="printer-mark"
        <pref name="printer-mark"

Sample Output H2

Blandit invidunt ipsum vulputate consetetur sed vulputate adipiscing sanctus diam nonumy elitr et nulla ut liber. Vero dolor dolore ea eirmod voluptua ipsum voluptua tempor sed duo diam ut stet no dolore lorem nonumy. Nonummy labore elitr eu ea ex takimata iusto sit consetetur labore aliquyam erat no. Kasd dolores lorem takimata aliquyam dolore accusam stet eos adipiscing laoreet iriure dolore rebum elit no. Lobortis illum vero no dolore labore tempor duo option eirmod magna consequat tempor clita rebum magna et. In diam aliquyam sadipscing et quis sea justo ipsum tation est invidunt in accusam duo dolor dolor dolor et.

Praesent et diam lorem at eos dolore. Aliquam no facilisis eirmod kasd dolor dolore. Kasd amet et et. Esse vel stet facilisis iriure kasd amet elit invidunt minim eu sea vero voluptua euismod takimata consetetur. Tempor voluptua et consetetur soluta voluptua praesent consectetuer justo dolor duo amet takimata ut diam. Amet eos voluptua magna imperdiet stet dolore et stet delenit. Erat eirmod eros justo sed dolores clita sit gubergren stet elitr sed tempor dolor magna sed ipsum. Ipsum dignissim augue justo. Gubergren et aliquyam hendrerit odio sea sed sed.

Sample Output H3

Consetetur eirmod feugait. Erat diam luptatum amet lobortis erat esse at magna eos vero lorem et et. Duo gubergren ipsum te labore et dolor ipsum sadipscing elitr in et vel ipsum lorem elitr sea. Elit justo nonumy voluptua at diam nonumy sit consequat eirmod nibh. Diam lorem consetetur tempor tincidunt sed te iriure te gubergren dolor sadipscing vero ipsum et.

Est diam elit ea diam. Stet invidunt stet invidunt stet erat et magna. Diam sed vel labore in elit facilisis voluptua sit eos kasd sea. Dolor ipsum et justo at dolore aliquyam clita sit tempor augue eu dolore ut. Elitr dolore eos nonummy sit magna volutpat dolore justo tempor mazim accusam diam sit. Labore ea lorem esse eirmod rebum rebum eum clita sit labore dolor consetetur tempor sanctus. Gubergren stet invidunt illum et sea dolor erat erat clita et lorem dolore sit. Lorem gubergren praesent dolor delenit sit elitr ea rebum erat esse clita ut amet clita sed erat clita labore. At ullamcorper amet consetetur no illum tempor quis elitr magna. Et eu diam et mazim tincidunt amet facilisis labore dolores et eirmod lorem kasd clita eros gubergren amet ut. Sed lorem duo dolor no.

Sample Output H4

Amet sit magna amet diam et duo stet praesent dolor illum. Praesent rebum lorem amet et vero accusam te sed feugiat odio ipsum kasd at id. Voluptua exerci invidunt et rebum. Molestie at molestie sit sadipscing sanctus magna ipsum eu vero ad kasd dolore sed dignissim ipsum. Aliquyam sadipscing illum ad eos elit kasd sanctus dolore sed ipsum invidunt. Praesent blandit sed dolore voluptua erat erat wisi minim ea accusam te ipsum dolor accusam amet est ipsum. Sed sed accusam eos rebum facilisi accusam quis voluptua nibh consetetur et euismod et eirmod sea lorem. Lorem delenit quis.

Lorem sed augue justo. Sed diam takimata sed lorem ipsum elitr lorem amet amet kasd laoreet suscipit eleifend accusam ut est. Enim exerci duis dolore eos. Amet facilisi lobortis diam clita takimata erat consequat eirmod clita aliquyam justo et et stet nibh ullamcorper. Eum erat no ipsum gubergren no zzril accusam diam erat. Sadipscing aliquyam no labore diam erat enim gubergren kasd congue nonumy dolores amet dolor sadipscing qui. Aliquyam nonumy consequat tempor dolor erat consetetur et justo ut consequat augue elit et stet lorem dolores.

Sample Output H4

Et invidunt iriure consequat luptatum dolores. Diam euismod aliquip ea autem amet no rebum vero eirmod sadipscing magna sed. Ea diam sea sadipscing duo eum consequat et voluptua consequat duis takimata nonummy eum lorem qui labore. Accusam in eirmod tempor et est no augue eos dolores et at et invidunt velit duis takimata. Molestie in option assum in eros duis duo dolore in elitr duis ea invidunt vel nonumy gubergren. Sit dolore magna ipsum ea diam ut aliquip sea justo rebum.

Diam est voluptua magna nostrud et sit dolor eum esse autem molestie et. Tation dolor dolor diam labore gubergren vero blandit dolor elitr dolor diam. Magna tempor erat aliquyam iusto voluptua ipsum rebum takimata nonumy sadipscing et consequat no enim. Eos et consequat autem ipsum eu ex sanctus facilisis erat zzril sanctus no hendrerit dolores. Aliquam clita ut ea sed mazim kasd diam duo voluptua blandit clita. Duo wisi consequat at duo vero voluptua dolor. Dolor enim ipsum stet qui et kasd at accusam eirmod et sed et accusam eos ex. Lorem et ut aliquyam et erat placerat sit vero vel rebum wisi accumsan justo sed clita dolore.

Sample Output H3

Nonummy elit eos justo praesent elitr lorem ipsum diam ea blandit nihil stet erat. Sea ipsum ea sit magna ipsum kasd dolores takimata nostrud dolor elitr illum rebum magna. Eirmod est justo justo dolor at lorem lorem tempor duo. Dolor feugiat consetetur amet ut facer dolore tation magna dolor labore. Sit labore ad et sed qui sit iriure possim no lorem iriure elitr quod sadipscing.

Amet quis takimata accusam tempor sed lorem delenit augue dolor dignissim sit eirmod facilisis. Esse sed lorem labore vero no clita ut tempor. Est sadipscing et dolore laoreet voluptua magna ullamcorper sadipscing et sanctus no nonumy sed. Dolor ut eum sed amet iriure dolor nobis eum elitr ad. Sea sit elitr tempor et nonumy doming et labore eirmod sit tempor tempor eos no sed. Magna nibh tation stet sed.

Sample Output H4

Ut sed et. Odio elitr dignissim sed stet. Et quis amet tempor. Accusam consetetur justo placerat voluptua ut accumsan accusam voluptua labore eos delenit et dolore sanctus diam magna. Justo ut consequat dolor nulla sit elitr dolor kasd et dolores eleifend. Imperdiet consequat amet vero quis consetetur invidunt justo. Quis in consetetur qui. Erat labore gubergren takimata no hendrerit erat eos sit ex lorem tempor justo lorem sea eos lorem.

Et voluptua lorem dolores liber kasd et consetetur amet aliquyam eum est ut nonumy. Rebum aliquyam duo cum euismod vero esse lorem et. Est nibh voluptua sanctus veniam et veniam molestie wisi magna est stet. Nonumy erat voluptua consectetuer. Justo takimata rebum no ipsum ea invidunt erat lobortis ea stet magna tempor eum et dolor ut.

Sample Output H4

Et facilisi stet dolore duo et. Et amet vero kasd velit duis sea at. At consequat elitr erat dolor et diam tempor sit elitr lorem sed in veniam lorem eirmod consetetur duo. Nam sanctus at nonummy dolore eos et. Ipsum imperdiet laoreet delenit sadipscing minim option no stet no vero ipsum dolor at et invidunt. At ipsum et nisl accusam eos iriure.

Illum elitr lorem et ut est minim duo elitr nulla. Euismod nonumy vel amet nam luptatum erat possim et eos nonummy ut nonumy. Et voluptua consetetur. Qui vero amet dolores facilisi sit tation. Sit sea erat aliquip. Et diam ut. Ipsum sit nostrud dolor eirmod tempor sed dolore duis eirmod takimata kasd et dolor aliquyam duo invidunt sed et. Veniam dolore praesent nam eum labore et accusam duo eirmod stet.

More Sample Output H2

Accusam diam ut feugiat labore magna ipsum ipsum accumsan aliquyam. Eleifend lorem dolores vulputate molestie. Ipsum quis lorem eos laoreet lorem ut takimata clita lorem. Et sanctus et takimata kasd lorem clita hendrerit vulputate accusam ut voluptua sadipscing lorem tempor. Sea sanctus clita duo lorem dolor vel diam labore sit erat duo kasd diam ullamcorper amet sed voluptua.

Tincidunt praesent esse et sanctus dolor sit et sed duo lorem ipsum vel dolor. Sit tation invidunt est dolor enim amet tempor et et duis sed amet duis consectetuer ipsum. Ipsum nulla imperdiet takimata invidunt aliquip nibh ipsum est zzril voluptua tempor vero amet et. Ea nulla diam elitr accusam dolore dolore diam nulla eirmod sea dolor at delenit in sit dolore vero. Diam lorem amet. Takimata et eros ea lorem sea sit gubergren. Dolor justo invidunt eirmod ullamcorper takimata. Magna hendrerit liber quis nihil diam sit nonumy sed diam aliquyam ut lorem amet takimata tempor.

Sample Output H3

Et amet stet tempor. Et nulla duis tation. Sanctus erat sit. Sed erat commodo et invidunt est invidunt et vero tempor ut eos clita lorem. Dolore tempor duis stet dolor velit sanctus dolores labore no molestie et dolor luptatum. Labore vel gubergren at. Est dolor tation dolor sadipscing velit tempor doming voluptua stet gubergren et magna invidunt invidunt stet vero. Lorem zzril aliquam clita. Sea dolore nonumy ut sit et et voluptua rebum molestie at liber vel. Dolore nulla tation tempor et in lorem amet luptatum sit ea. Nonumy sadipscing odio lorem sadipscing velit clita.

Et velit ipsum ipsum vero est invidunt dolor et takimata option ut consectetuer elitr vel delenit dolor diam. Gubergren suscipit ad accusam et lorem consectetuer kasd. Elitr clita iusto sadipscing dolor lorem minim eirmod duo labore eos invidunt et dolor et nibh labore. At amet vero voluptua sit gubergren ut sit sea eirmod justo. Dolore feugait ad magna velit sanctus justo takimata eirmod. Ea dolor clita rebum et amet voluptua et labore in qui sed takimata quis dolore dolore et. Dolor sit sed invidunt ex et sit feugiat sed. Ea te consetetur diam accumsan elitr et eum ipsum et nonumy sed. In eirmod kasd et sed dolor ipsum ipsum placerat sea iusto.

Sample Output H4

Elitr voluptua sed delenit. Facilisi diam sea sanctus suscipit ea ut ut. Sed est duo consectetuer. In ea dolore dolores elitr amet gubergren. Nonumy possim elitr dolor iusto nonumy amet dolores kasd ut dolore eirmod sit amet stet vel. Sit vero in nisl kasd exerci aliquam at sit rebum sea velit vero duis.

Erat tempor duo feugiat ullamcorper sadipscing et consectetuer dolore aliquyam dolore ut amet diam gubergren. Nonumy tempor aliquyam elitr wisi feugait nonummy diam qui sed iusto elitr rebum duis. Et nisl dolores et doming sed amet sed ipsum consequat sadipscing volutpat magna erat lorem. At lorem et eleifend tempor lorem eos dignissim ut eu. Sed magna diam magna. Est euismod eros consequat sed duo consectetuer sea nonumy sit sadipscing diam at eos eum. Et dolore sadipscing tempor sea. Et ipsum magna ea. Dolores velit et facilisis dolor eos vero amet tempor dolore tempor accusam kasd possim stet. In autem luptatum amet eum dolore consetetur duis magna sit sadipscing clita no nonumy.

Sample Output H4

Rebum dolor et dolor amet sit sit dolores aliquip facilisi no elit rebum tincidunt et. Amet cum in sea veniam tempor suscipit ea sadipscing amet gubergren ut. Clita diam sed. Ea sea rebum vero. Clita elitr lorem adipiscing nostrud est sed adipiscing. Amet stet voluptua et sanctus erat amet accumsan diam ullamcorper dolor lorem. At autem tempor esse et erat consequat iriure dolores et sadipscing invidunt dolor amet diam erat mazim qui diam. Diam rebum sed lorem eum. Nonumy erat erat ea euismod voluptua in takimata sit lorem vel vero nonumy eos amet eos vel in commodo.

Voluptua sanctus dolor ipsum ipsum lorem tempor erat kasd nonumy et takimata dolore. Sed luptatum dolor rebum dolores enim ut duis dolore amet aliquam zzril est et lorem. Eu accusam et wisi dolore eos dolor stet esse facilisi lorem sed. Illum zzril et diam at aliquam sed iriure rebum ea sadipscing ipsum. Amet sed dolore et lorem lorem at at vulputate. Invidunt lorem erat dolores rebum nonumy tincidunt tation.

Sample Output H3

Sed sed vel lorem voluptua consetetur sanctus stet nonumy dolor dolor. Ut gubergren vero at rebum eleifend. Amet sit amet sadipscing labore rebum at eos et diam iusto nonumy. Erat quis sit sed mazim ipsum sit lorem sed. Tempor eos at no dolor et consetetur diam id eos labore stet justo. Dolor amet sed duo stet iriure molestie duo. Nulla lorem no no vel nobis ea tempor odio sea tempor consequat. Et accusam sadipscing kasd voluptua tempor stet ea no. Facilisi et erat nulla takimata sed. Erat suscipit duo gubergren dolor gubergren nonumy.

Tation at eirmod feugiat est veniam erat nulla id et vero vel ut duis lorem nihil duo et. Labore soluta sea vero nulla amet suscipit ea diam euismod nonumy kasd. Amet sed ea cum duis sed kasd magna. Consequat ipsum velit ipsum takimata ipsum vero ea dolore labore. Dolor diam ad autem sit kasd sit kasd sea ut autem est no clita lorem molestie ea et sit. Voluptua est aliquam dolore dolore elitr invidunt eirmod ut dolor ad et sanctus labore invidunt laoreet. Amet soluta dolor diam delenit takimata gubergren tempor vero eros dolores dignissim labore. Nostrud erat consetetur est ut diam diam dolor no. Stet dolor rebum sanctus velit amet at et. Tempor duo dolores sit. Laoreet ipsum diam consetetur labore amet sanctus tempor est est sit ipsum clita erat nonumy et amet.

Sample Output H4

Erat rebum justo sadipscing dolor aliquam amet. Nisl dolor dolor est kasd vel feugiat. Praesent sit dolor duo amet labore te vero no aliquyam in aliquyam nonummy sadipscing volutpat dolor magna sea. Amet iusto magna eos sadipscing lobortis magna ipsum amet. Sit nonumy invidunt ea ea accusam eirmod amet erat et veniam tempor delenit duo et dolore takimata accusam.

Nulla ea ipsum sed minim voluptua consetetur nonumy diam nonumy ad et clita amet no amet. Eos zzril eos dolore adipiscing placerat feugait nonumy diam elitr vero accumsan sea consequat gubergren stet. Minim et tempor vero elit et diam ipsum accusam wisi justo justo sed ipsum. Labore erat et vero dolore et amet clita consetetur eirmod labore ut assum. Sit nostrud qui et labore esse dolore erat erat ut sea. Feugiat erat et diam velit in sed lorem dolore vel praesent est diam molestie. Lorem sadipscing invidunt zzril tation sea duo diam takimata sit. Sed feugait stet est consectetuer no zzril sea sed dolor diam.

Sample Output H4

Minim sanctus assum at justo amet dolore vulputate magna takimata elitr. Sadipscing quod et. Dolor aliquyam et. Eirmod amet tempor tempor illum eum vero velit. Nostrud magna magna nonumy in eirmod sit justo quod est kasd dolor at voluptua ipsum in justo quod. Aliquyam invidunt rebum aliquyam sea option erat stet et dolor sed eos est in aliquip lorem. Sea dolor aliquam est clita ipsum dolor ut est invidunt sadipscing eos et nulla ea eirmod nulla diam. Iriure labore lorem no no sea magna esse nisl dolore laoreet consetetur sea lobortis sed erat et et erat. Et kasd clita ipsum. Invidunt facer et odio sed labore nonummy ea.

Et tempor iusto delenit nihil eirmod consectetuer invidunt invidunt lorem in dolore tempor tincidunt ipsum elitr dolor nibh. Sit esse lobortis labore nonummy eos tempor sed stet. Dolor consetetur erat suscipit no ipsum hendrerit sit et sit possim dolore vero no est labore. Ipsum amet invidunt dolores aliquip sit wisi et. Ea gubergren voluptua dolor consetetur no tempor elitr takimata. Zzril aliquyam sed dolore consetetur hendrerit sed stet erat duo quis eos labore clita et. Elit sed gubergren sit consetetur consectetuer ut magna justo gubergren at et takimata nonummy sed dolore sit ut.