cloudformatter format requests: 5,936,846    pages delivered: 13,104,446

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

Eos soluta augue in amet consetetur eos sed magna diam ut stet accumsan invidunt vero sanctus. Labore amet tation sed accumsan vel ipsum rebum et lorem dolor elitr takimata eirmod. Dolore sadipscing voluptua et ipsum eum et rebum et voluptua voluptua dolores dolor justo elitr no iusto. Takimata dolor autem. Ipsum et et no augue erat sit dolor et at et nonummy ipsum. Kasd soluta dolore no amet aliquip et ea augue duo diam at.

Et ipsum adipiscing diam sed ipsum amet sed diam quod erat nonumy duo nam sadipscing dolor invidunt sea. Gubergren lorem et. Dolore consetetur erat sed et blandit et placerat dolor tempor sanctus. Ipsum sea et amet. Diam consequat ad diam erat gubergren clita blandit accusam kasd eirmod et amet eu sed ipsum takimata velit. Lorem sed amet ullamcorper laoreet ipsum voluptua ipsum stet erat vero minim. Takimata erat in et euismod ad ipsum et sadipscing sanctus clita takimata amet sit. Nonumy ea aliquyam autem et no.

Sample Output H3

Elitr diam eirmod at lorem. Sanctus dolore dolor dolores invidunt. Et diam sea ea stet labore commodo sanctus sanctus consequat duo et. Sanctus stet nihil dolor ipsum vulputate tempor. Clita autem elitr.

Commodo voluptua invidunt et zzril exerci stet vero eu et. Ea dolore aliquam gubergren commodo clita. Eos magna ut dolores amet sed nulla et vero ipsum ea. Kasd et duis at qui eos aliquam option illum nonumy ad et magna duis sanctus facilisis kasd duo sed. Lorem accusam et hendrerit ipsum dolore magna nonummy luptatum dolore vel. Sadipscing odio accusam sed lorem takimata justo suscipit sed illum gubergren sed blandit dolor tincidunt ea odio dolore. No accusam sanctus clita diam eum sea placerat odio sadipscing.

Sample Output H4

Dolor adipiscing lorem in dolores. Ea nonumy voluptua ipsum in wisi lorem. Elitr molestie sit eos amet est qui ea eirmod sadipscing diam te consequat aliquyam. Dolore et dolor invidunt eu sea ea diam dolor et. Et elitr gubergren gubergren lorem exerci iriure amet esse.

Lorem eum tempor ipsum suscipit quod et diam elitr sed cum. Quis commodo sed sed est invidunt kasd duo vero augue stet labore diam. Sed sed erat invidunt. Et takimata sadipscing et ipsum lorem duo. Et dolore at ut vel tempor ipsum amet sadipscing et erat lorem. Sadipscing invidunt et et et ipsum accusam nobis ea consetetur exerci. Sed sed justo dolores duo accumsan nulla liber ea nonumy dolore labore erat amet aliquyam diam est invidunt no. Sed diam vel eos diam. Dolor amet duis justo at eirmod. Consequat ipsum takimata facilisis nobis feugait.

Sample Output H4

Magna dolore lorem aliquam dolore sed at vero kasd nihil et invidunt suscipit. Magna magna veniam sed erat et illum gubergren dolor consectetuer ipsum dolores eu illum. Ea accusam gubergren sed aliquip luptatum dolore sadipscing ipsum. Placerat stet et ut at sit dolor no sanctus et consetetur lorem amet eos dolor illum. Wisi at accusam zzril iriure. Sit imperdiet voluptua. At sea accumsan. Labore eros clita aliquyam ipsum exerci at vulputate invidunt iriure. Dolore vero nihil praesent diam diam minim eu consetetur duo odio et autem lorem et facer facilisi. Voluptua dolore dolor option et sanctus sanctus eirmod elitr diam takimata sit in lorem eum eos.

Lorem consetetur lorem duis ullamcorper no iriure consequat adipiscing sadipscing dolore dolore et accusam tempor. Diam et sed clita et sanctus erat diam sit lorem. Ipsum kasd enim sea at duo esse consectetuer. Dolore id et te justo sed sanctus. Sit gubergren ad invidunt diam et at sed eos justo aliquyam ipsum.

Sample Output H3

Eirmod accusam duis dolor tempor duo tempor eos stet iriure ipsum ullamcorper clita consequat aliquyam option. In consectetuer dolores voluptua dolor sed magna nonumy consetetur est magna diam eirmod eos esse rebum. At ipsum diam accusam ut eirmod sea at dolor dolore nobis duo lorem clita dolor dolore tation eos aliquyam. Et sit nulla gubergren nulla elitr stet ut et option accusam. Magna dolor sadipscing illum molestie est. Vel no ipsum. Nibh eos magna justo sadipscing et amet nisl vel elitr. Delenit esse diam praesent ad elit at.

Dolores kasd sit ullamcorper magna ipsum esse amet diam sed eu sea. Lorem lorem invidunt takimata sit lorem diam sit elitr est placerat vel esse ipsum consetetur et hendrerit. Aliquam velit zzril et nulla sanctus rebum ipsum diam ad lorem amet sed nostrud sanctus. Hendrerit et nulla liber amet ipsum clita kasd tincidunt at. Accusam dolore ipsum at at autem diam amet ut dolores sed sea duis consetetur amet aliquyam. Dolor tation voluptua dolore rebum nonumy ut. Invidunt accusam est et. Dolores zzril justo sed elitr accusam. No vero consequat.

Sample Output H4

Erat et kasd at ea exerci sit quis nonumy magna stet ea. Eros sadipscing dolor sit volutpat nulla dignissim clita sea sit dolore ut laoreet dolor aliquyam eirmod labore. At facilisi vel eros sanctus eos. At diam at dolor iusto ipsum blandit vero ea sit sed consetetur stet laoreet no enim lorem sed dolore. Diam dolore vero. Labore eirmod velit eirmod elitr doming lorem tempor at voluptua duis lorem sed esse est ipsum at consetetur facilisi. Dolor consetetur accusam et ea nonumy magna rebum vero sadipscing aliquyam feugiat ex no et duis. Erat dolore eirmod sit sed et liber voluptua. Nonumy luptatum placerat et tempor delenit lorem nisl rebum consetetur invidunt clita eos ipsum magna.

Dolore clita rebum no et duo ullamcorper lorem ipsum clita justo amet kasd vero ea lorem velit sit. Sed tincidunt accumsan illum at dolor sit at magna laoreet. Erat vero lorem sed. Consetetur clita aliquyam dolor. Invidunt invidunt eirmod tempor ut justo ipsum lorem dolore dolor dolor invidunt luptatum sed facilisi. Imperdiet est kasd sed iriure at dolor elitr vel. Et labore invidunt in ipsum ullamcorper ipsum gubergren accusam nonumy tempor magna no sed elitr lorem gubergren et. Nostrud elitr et hendrerit erat dolor sed sed imperdiet. Kasd nostrud duis lorem velit zzril. Labore magna consetetur tincidunt eirmod dolores sea duo nonumy ea duis nonumy dolore dolor.

Sample Output H4

Diam et aliquam ipsum stet velit in clita voluptua accusam eum consetetur aliquyam accumsan vero et illum suscipit tation. Eum consetetur sea vero duis stet. Ad rebum feugiat ipsum. Nonummy in sea labore dolor augue nonumy eu sanctus enim praesent dolores vero consectetuer labore veniam nam facilisis takimata. No justo vero consetetur aliquyam augue sea sadipscing sit voluptua. Volutpat eos et nihil no eleifend in. Dolores wisi sed. Rebum sed in sit aliquyam lorem sit kasd tempor volutpat vulputate hendrerit sit. Autem iusto et est dolor eu dolore sit labore euismod magna ut stet ea stet exerci. Nonumy invidunt erat gubergren.

Duis erat sadipscing qui et in sit. Nibh dolore elitr duo accusam delenit augue molestie rebum kasd clita sadipscing clita. Amet invidunt ipsum dolor commodo eum sit euismod et eos eleifend. Ullamcorper gubergren lorem rebum augue. Et sit sed enim ut erat elitr consetetur diam dolor accusam dolores ipsum nonumy voluptua et duo. Accusam qui no sit. Est justo et invidunt eos lorem dolor dolore amet et ipsum. Vel lobortis sit commodo sit nonumy tempor cum elit. Dolores vero clita eos kasd autem dolor. No sed stet aliquyam erat option velit amet dignissim nonumy.

More Sample Output H2

Diam vel amet luptatum voluptua feugait tempor nulla dignissim ea feugait wisi dolore justo ipsum. Eos amet veniam facilisis ut nonumy ullamcorper at ipsum accusam invidunt dolor stet sanctus aliquam delenit et. Ipsum et erat eum dolor sit facilisi in diam erat justo sanctus. Invidunt imperdiet accusam. Tempor duis dolore et eleifend dolor accusam dolor nonumy et sed rebum aliquyam aliquyam aliquyam ut. Et ut duo sed diam tation justo wisi lorem sed est imperdiet eos. Ea facilisi qui rebum justo commodo sit. Justo takimata volutpat nulla sit ut. Kasd lorem diam liber facilisis aliquyam sed eirmod amet dolor invidunt clita ipsum praesent invidunt et adipiscing zzril est. Iusto erat et clita odio sed.

Kasd at gubergren ipsum et in magna duis ea sed. Esse diam lobortis euismod diam kasd dolor diam magna et sed et kasd sed eros dolore. Et erat amet. Est vero sea molestie elitr sanctus feugait erat erat takimata dolor feugait tempor. Dolor tempor dolor ipsum facilisis et rebum nonumy soluta odio kasd ipsum takimata iriure est accumsan. Invidunt sed diam lorem lorem sadipscing sed invidunt no voluptua dolor dolor doming nonumy. Eum takimata dolor lorem amet aliquyam duo veniam exerci autem accusam facer magna sadipscing amet stet sadipscing aliquyam. Lorem soluta imperdiet invidunt sadipscing kasd autem aliquyam justo consetetur duo tempor sea luptatum erat ut lorem eos. Consequat ea magna autem sit et dolore erat invidunt aliquyam feugiat stet lorem diam velit eos possim dolor.

Sample Output H3

Nonumy feugiat lorem ea. Ipsum justo rebum eos dolor justo eleifend duis tempor sed vero at. Erat rebum sed takimata dolor amet gubergren dolore rebum facilisis possim nulla dolore eros amet erat dolores et. Sanctus voluptua eum justo dolor augue labore kasd diam magna dolores sanctus nostrud sit vel. In eros zzril duo amet est nonumy sed. Sadipscing amet justo sanctus ullamcorper est et vero ut nisl.

Consetetur no dolor clita nonumy consectetuer labore sit esse. Nihil wisi nonumy diam. Dolores ut justo dolor et et facilisis gubergren vel. Dolore nonumy diam dolor dolore nonumy tation amet et sit et. Ullamcorper dolore dolor est consetetur ut ea amet invidunt et et molestie qui facilisis est liber amet clita. Illum clita et diam sadipscing nulla amet sanctus velit sed dolor justo diam consectetuer erat kasd. Facilisis labore at gubergren sed iriure nonumy. Invidunt tation erat vero labore sit est elitr sed amet sadipscing diam aliquyam. Augue nibh sed eros eum duo soluta stet sit exerci et ea voluptua kasd. Eos et sit eirmod kasd. Ut accusam amet ipsum.

Sample Output H4

Duis nulla justo dolores et ipsum magna erat no dolore tempor et kasd diam sanctus nam esse no. Vero sed suscipit consetetur diam veniam ipsum nonumy. Minim suscipit imperdiet invidunt tation sanctus takimata sanctus eleifend eos doming clita nibh. Facer in dignissim et dolore labore aliquam eum sit elitr ipsum rebum duo diam consequat sed. Duo at at no vulputate lorem. Dolor suscipit dignissim sit sanctus et vel in no accusam rebum molestie sea consetetur. Kasd accusam ea elitr est labore sadipscing eirmod et in et et hendrerit. Et ea amet accusam clita. Diam consequat justo in labore no amet labore. Diam sit et zzril gubergren rebum est sed. Ea amet dolores dolores velit feugait magna labore ipsum ipsum vel sanctus rebum.

Cum dolor feugiat amet sadipscing ut aliquyam lobortis. Vero nonumy kasd sed dolores sit eos et odio lorem vero et. Takimata sea vel gubergren sit nonumy at no eros stet delenit amet clita takimata. Dolore ut at justo hendrerit at consetetur eleifend ipsum eos amet eos aliquyam. Duo autem elitr dolor aliquyam erat esse sadipscing. Sanctus diam sit sit. Diam magna zzril sanctus elitr sed. Volutpat stet eirmod sed vel augue tempor imperdiet tempor ut ea. Feugiat elitr ipsum iusto iriure et aliquyam nostrud gubergren ipsum dolor sed gubergren at erat tincidunt. Takimata vel erat et aliquyam sed dolore.

Sample Output H4

Vel minim dolore veniam consetetur erat voluptua diam. Ut exerci vero vero nonumy clita at eirmod erat exerci nostrud amet facilisi sit dolor. Aliquyam voluptua soluta in dolor. Suscipit ipsum et justo et et stet sea ea ipsum. Vulputate takimata dolores at illum lobortis invidunt amet voluptua rebum nonumy ea et at ipsum. Invidunt ea autem placerat volutpat blandit sed lorem. Invidunt accusam clita elit vero kasd imperdiet iusto amet.

Consequat dignissim et lorem et iriure accumsan magna et. Gubergren consetetur ut ut. Sadipscing esse aliquyam illum tempor sed rebum enim feugiat. Vero consequat dolor invidunt elitr voluptua facer elitr esse sanctus. Ex est at sed consetetur luptatum tempor te stet sed voluptua takimata ea ut sea veniam ea aliquyam.

Sample Output H3

Sed sit sea sadipscing gubergren et id. Nibh aliquyam odio et luptatum veniam facilisi ipsum accusam takimata sadipscing magna voluptua justo ea. Magna nulla suscipit amet labore ea vulputate erat et labore at dolores. Et justo et et autem duo at tincidunt facilisis. Lorem imperdiet gubergren diam diam invidunt qui feugiat est tempor consequat stet. Ut sea eos exerci congue sadipscing quod et vel est.

Nonumy accusam at duis vel nonumy aliquyam vel justo commodo sed at eum dolore sadipscing. Dignissim in aliquyam kasd lorem consequat odio rebum sed euismod doming dolore tempor voluptua tempor sanctus. Dolor eirmod ipsum consetetur ut. Dolor est amet consectetuer dolore blandit. Justo et amet sanctus stet ipsum at vero labore molestie. Clita tempor kasd stet autem option sadipscing lorem duo et at consetetur facilisis diam esse wisi et sanctus. Lorem tempor eu duis sanctus aliquyam et delenit sit sanctus magna nisl. Aliquam ipsum et ipsum feugait cum. Sit assum ipsum duo nulla kasd est odio diam dolor consequat hendrerit duo takimata amet stet nobis nostrud. Dolore dolore amet feugiat consetetur tempor vel.

Sample Output H4

Ex stet lorem vero commodo ipsum feugiat. Ex kasd et autem vero aliquyam accusam lorem eros nonumy. Consetetur ut sit dolore sea accusam dignissim at sit eos no magna lorem accusam magna et et. Laoreet sanctus justo consetetur lorem feugiat. Sadipscing sanctus nonummy dolor veniam dolore praesent rebum dolor dolore velit. Feugiat aliquyam lorem diam vero vel eros dolor aliquyam dolores est consetetur no est. Lorem gubergren adipiscing erat invidunt facilisi gubergren ea tincidunt consetetur sanctus amet diam et dolores invidunt facilisis. Sanctus nisl veniam aliquam ut iriure feugait vero et kasd facilisis eos.

Feugait ut autem tempor eum diam ipsum hendrerit. Ea consetetur labore velit ea vel ipsum sit magna quod justo diam qui eum cum. Diam at augue eos lorem nam liber gubergren nostrud in. Exerci option vero ipsum erat ipsum et eleifend at eleifend no no dolore ea. Amet nihil commodo voluptua diam et amet tincidunt nam invidunt diam illum voluptua nibh velit at eos diam accusam. Vel sanctus sed dolore est accusam sadipscing erat. Magna labore voluptua. Labore sit sea et stet sit et praesent et consequat dolores eu dolor. Vero justo euismod. Magna sit et ipsum eirmod takimata dolores tempor molestie invidunt adipiscing sed laoreet.

Sample Output H4

Gubergren labore magna feugiat facilisis. In sanctus no vero aliquyam vero volutpat in consetetur justo no. Elit nisl voluptua dignissim zzril takimata qui clita amet ipsum at et. Gubergren et illum eirmod dolore in dolor clita ipsum nonumy at delenit sed amet eirmod lorem. Consetetur lorem vulputate aliquyam sit ut esse velit nam sea dolor et. Facilisis elit voluptua consectetuer sed no duis sit dignissim diam diam dolore. Ea magna et sanctus sea stet rebum esse. Nonumy sadipscing diam ea. Amet eos duo ipsum mazim sit sit nonummy et laoreet ut. Diam amet hendrerit exerci sed aliquam facer consequat. At dolores labore duis no sit et laoreet sed labore accumsan augue feugait lorem nonumy consequat takimata.

Ea tempor ea justo veniam ipsum dolor rebum. Rebum clita in sanctus sit. Esse ea duo sit sed sed duis dolor elitr in duo diam duis. Accusam et magna tempor clita rebum ipsum diam ut tempor nihil stet magna et. Aliquyam gubergren dolore dolor consetetur amet vero dolore lorem lorem labore lorem ut vero aliquyam. At ea blandit exerci mazim te et. Ipsum justo clita ipsum eirmod sed ut esse vulputate et.