cloudformatter format requests: 2,952,148    pages delivered: 7,799,120

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

Autem velit ea autem labore sed ipsum. Sed amet in rebum lorem voluptua sit vulputate dolor esse magna sea duis sea accusam at et ipsum diam. Et takimata dolores wisi in in dolore eos ea. Ea amet dolor ad dolore molestie blandit ut wisi ipsum aliquip suscipit praesent erat sit sed ut ut ea. Sed ipsum lorem lorem dolore.

Accusam eos sed kasd et sed et. Invidunt at lorem velit duo iusto zzril dolor dolore duo. Vero nonumy sanctus vel suscipit sit. Takimata dolore duo takimata ipsum aliquyam amet voluptua clita ex diam ipsum erat et. Aliquip quis consequat zzril eu. Ut rebum facilisis voluptua eos ut lorem ullamcorper molestie consetetur accusam rebum labore labore stet. Sed eos vero dolore sadipscing gubergren ea rebum exerci nonumy. Laoreet soluta sit.

Sample Output H3

Ipsum accusam et nam. Magna ipsum sit dolor assum dolor takimata dolor nonumy consetetur lorem ullamcorper ea consectetuer dolore. Lorem at at lorem esse velit sadipscing est id ipsum molestie volutpat clita iriure. Clita takimata dolor dolor enim nonumy magna lorem feugiat no kasd qui amet magna dolores in eos ad. Vel amet feugiat iusto tempor rebum dolore diam facilisis.

Nulla accusam sanctus dolore tempor zzril sit. Delenit magna et et dolore sed vero dolores ea vero nonummy molestie. Est rebum rebum justo commodo ut ea commodo eirmod est dolore est eirmod justo. At sit consetetur dolores hendrerit dolor rebum ipsum. Eos accusam magna magna nihil et amet ipsum. Eirmod tempor at ipsum rebum takimata minim amet labore veniam voluptua duo duo magna sed vel id. Zzril sadipscing sed iriure sed diam.

Sample Output H4

Feugiat ipsum labore est sanctus magna duo lorem erat ea facilisis sadipscing consectetuer et aliquip sadipscing stet. Te stet sanctus ea nostrud iriure ipsum augue ut ipsum sadipscing sit rebum lorem magna. Sed minim et nulla ut labore cum rebum est. Takimata consequat eirmod te nam dolore eu ipsum invidunt lorem justo. Nostrud sanctus dolor sea ipsum at euismod iusto aliquam zzril augue erat sed elitr gubergren gubergren consequat justo. Elitr voluptua dolore velit accusam gubergren at et te esse gubergren dolor gubergren ea ea lorem. Nostrud erat duo at. Nobis takimata gubergren ipsum no qui rebum velit stet labore clita voluptua dolore tempor. Et zzril sit facilisis autem labore eirmod gubergren. Dolor consectetuer diam tempor lorem velit voluptua lorem.

In voluptua erat dolores sit diam sit accusam justo nonumy labore. Ut diam lorem consetetur clita nulla ipsum commodo justo. Dolor hendrerit sit voluptua nibh eirmod nonumy placerat dolores no takimata et. Qui odio kasd amet takimata sea stet ipsum et elit dolor vel eirmod diam sanctus. Sed amet lorem eirmod aliquyam aliquyam accusam dolores. Stet option et feugiat eos voluptua exerci stet dolore duo facer minim nonummy et lorem takimata. Voluptua consetetur ad stet consetetur ipsum et ea eirmod no. Labore amet dolore sit lorem et eum sadipscing aliquyam duo ipsum eos laoreet adipiscing elit ipsum labore. Ea dolores ipsum ea eu lorem diam amet clita ex eleifend amet et labore et exerci erat sit dolor. Dolore duo et consequat nulla consequat sed est diam consequat sed sed et.

Sample Output H4

Elitr sanctus justo esse. Takimata lorem augue diam tation aliquyam invidunt stet sanctus. Liber amet kasd consetetur erat aliquip consetetur blandit takimata ut at eos no amet at vero. Clita magna vero dolor gubergren lorem takimata eu dolore est et tempor eum sit ea. Eos sed aliquyam et eirmod ullamcorper accusam dolore suscipit nonummy amet eum ut. Rebum zzril tempor congue diam dolore dolore duis autem sit lorem magna dolore sit kasd.

Et gubergren nulla invidunt hendrerit facilisis sed. Accusam diam dolore dolor ipsum eu sed clita eu diam dolor duo ipsum eos dolore. At rebum nonumy duis hendrerit aliquyam at accusam et ut nulla sit voluptua. Facer ut duis stet dolor et hendrerit sit ipsum dolor sadipscing et sit suscipit. Ipsum vel amet augue no clita sed justo dolor magna takimata. Diam at stet justo euismod invidunt sadipscing duo dolores accusam kasd.

Sample Output H3

Sed eos dolores diam lorem eum erat. Sadipscing sadipscing takimata vero voluptua vel at stet dolor amet. Nibh duo lorem exerci ex erat. Eos sea eirmod kasd diam sit veniam ut illum velit. Dolor sadipscing sed sed et. Ea sanctus nonummy takimata justo sit sanctus magna et kasd exerci vero autem. Delenit ipsum est kasd est amet enim dolores suscipit clita. Est vel volutpat consetetur sanctus accumsan praesent ipsum dolores kasd nihil dolores. Clita takimata dolore rebum tempor sed takimata kasd dolore consetetur dolore quod nonumy et hendrerit sit delenit. Qui dolore invidunt magna sit tation.

Stet sanctus accusam eum wisi sit eleifend autem et. Ea diam illum veniam sanctus gubergren sanctus sed invidunt aliquam dolores takimata gubergren vulputate lorem. Sed dolore sanctus eu sanctus in et ipsum assum labore diam tempor id aliquyam sadipscing feugait commodo sed. Amet dolore lorem diam doming sea in accusam tempor elit stet diam ipsum vero liber. Et iriure aliquip elitr tation duis nonummy voluptua diam tempor clita dolor est euismod diam sed. Eirmod in kasd vero nisl facilisis eos.

Sample Output H4

Eos nonumy voluptua sit et nulla eirmod sea diam dolores sit. Et elit no sed liber no facilisi amet elit dolore accusam nonumy magna magna amet gubergren lorem nonumy stet. Amet eirmod sea labore sit sit amet elitr sea. Ea sea sed quis dolore consetetur dolor erat sit. Dolores sit eirmod exerci lorem invidunt odio vulputate vero erat in feugiat tempor placerat sed. Gubergren ullamcorper sed duo no nulla eirmod tempor magna aliquyam ipsum dolore. Sanctus sea lorem erat vero tempor sed eirmod nonummy eos rebum. Te labore veniam. Dolore vero volutpat esse dolor blandit enim sit dolore sit liber aliquyam dolor rebum justo velit ipsum elitr tempor. Dolor dolore in lorem stet ipsum quis labore delenit invidunt dolores wisi.

Commodo sanctus duis congue justo eirmod rebum laoreet stet et odio elit adipiscing sit nisl no imperdiet dolor sit. Eirmod aliquyam ipsum ipsum et consetetur diam aliquyam amet et sed sed et qui et. Vero est eos amet elitr. Nostrud sanctus nonummy ipsum vulputate sit duis eos sea et justo ipsum dolore dolor et magna. At dolor dolore ut luptatum. Minim voluptua sed dolores esse ut facilisi feugiat eum duo. Odio tempor et amet et exerci feugiat ipsum accusam duis accusam ullamcorper ut sed vero vero et. Dolor sadipscing et sea accumsan clita et sed clita kasd eirmod. Ut dolor aliquyam vel elit hendrerit ut stet ipsum.

Sample Output H4

Suscipit iriure sed te invidunt elitr consequat et tation ut kasd no sea amet stet sit stet. Id option odio. Aliquyam sed commodo facilisis duo ipsum dolores takimata dignissim enim et no gubergren stet et dolor. Ut vel quis duis vero te eu accusam sit praesent sadipscing sea in facilisis est rebum. Vero amet aliquyam vulputate eum molestie congue sit sanctus ea clita amet diam amet. Dolore molestie feugait est sadipscing doming rebum ea et sea volutpat. Et eos magna nonumy tation nostrud congue nam et sanctus. Veniam kasd ea dolore justo rebum et lorem kasd enim. Dolor qui dolores adipiscing et vel kasd ipsum rebum et.

Nonumy justo vero diam. Eos gubergren clita aliquyam est sea. Amet diam ipsum autem ipsum nonummy lorem nam invidunt kasd invidunt sit accusam at et erat duis delenit. Magna dolor magna sed erat consetetur invidunt dolor eos qui. Duo et imperdiet justo vulputate amet sanctus dolore sit enim erat eirmod consetetur nostrud.

More Sample Output H2

Et voluptua dolore elit ea ad erat gubergren adipiscing rebum. Ut nobis et sanctus lorem invidunt zzril sadipscing. Lorem invidunt ipsum erat. Stet magna sadipscing duo dolor invidunt eu sit ea delenit eros ex diam. Aliquam rebum sit vero ut feugait tempor et sit nonumy tation dolor.

Sea augue et dolor dolor eirmod dolor clita. Eros labore sed lorem eos invidunt esse volutpat diam sit elitr eum sit lorem aliquyam. Accusam accusam magna magna laoreet euismod at et. Diam ea consetetur. Nihil sit et labore sed no et stet velit ipsum dolor elit qui gubergren ullamcorper est at. Duis laoreet erat feugiat dolores accusam diam autem dolor nisl est diam aliquip nobis placerat ipsum exerci consetetur. Consetetur justo nonumy sed stet eleifend takimata et. Justo sit sed velit esse elitr ipsum eirmod aliquyam magna. Sit kasd magna.

Sample Output H3

No ea at no sadipscing dolores vulputate veniam nobis ea consetetur eros duo dolores et gubergren. Nibh sed magna lorem consequat invidunt stet congue diam dolore amet kasd et amet tempor nostrud. Est sit dolor dolor eirmod consequat est nulla ut eos ipsum sea et justo duis vero aliquyam ea dolor. Ut takimata rebum et zzril diam justo. Aliquip aliquyam et sanctus lorem kasd. Et diam volutpat nonumy kasd nulla ut praesent duis magna labore ut sea aliquyam invidunt elitr ea invidunt dolor. Dolor invidunt ipsum eirmod congue enim consetetur ipsum sanctus sanctus elitr erat diam sea sit sanctus. Enim accumsan consetetur sit vero aliquam labore clita elitr kasd. Ea odio justo et sit sed rebum erat amet sed. Euismod consequat est gubergren nisl diam no diam ad veniam.

Sit stet sea accusam elitr. Dolor id diam nisl ipsum dolore ut ullamcorper et et tempor stet. Facilisis dolor est magna sadipscing facilisis ad stet nibh lorem justo stet. Suscipit no erat takimata. Tempor sanctus exerci clita labore ipsum et sanctus et at amet sit voluptua ipsum cum sadipscing. Gubergren sit et elit et erat iusto soluta sed tempor sed consequat no voluptua tempor ea amet amet at.

Sample Output H4

Dolores dignissim no tempor sed molestie augue clita sed et no ut. Ipsum laoreet vero laoreet amet diam nonumy blandit in. At sea ea adipiscing stet velit magna ipsum dolor commodo dignissim sadipscing consetetur vero clita. Sed vero diam dolor accusam aliquam et nihil diam molestie sed at est rebum ipsum accumsan ut. No erat te dolor dolor voluptua rebum stet elit erat gubergren sanctus erat amet. Iriure vel rebum ad sit amet sadipscing.

Exerci duis autem eos lorem. Sea clita tempor sanctus consetetur illum. Takimata sea ipsum et sea nonumy eros assum et sanctus sed zzril. Sed euismod aliquyam kasd sadipscing tempor diam elitr stet eirmod amet diam rebum duis lorem. Qui eos sanctus elitr aliquyam sanctus diam ea stet consequat eirmod dolore dolor vulputate at lorem tempor. Est sit consequat consetetur clita. In eu consetetur aliquam dolor at. Sea et sed et eirmod et iusto. Sit consectetuer magna lorem. Dolore diam enim at illum sit dolor at nulla ipsum wisi facilisis kasd amet. Facilisi duo aliquyam dolor ipsum takimata diam takimata est dolores sadipscing invidunt dolor ut hendrerit eleifend.

Sample Output H4

Et vero labore duo duo nonumy dolor. Tempor soluta justo voluptua consetetur accusam ut vero. Dolores magna clita amet duo est lorem nulla sea nonumy gubergren consetetur justo tempor odio consetetur. Sed voluptua ipsum et lorem sit ex. Stet sadipscing diam aliquyam eos velit sit. Aliquam justo justo eos dolore et et aliquyam diam kasd enim eros vulputate kasd. Et dolore kasd dolore no voluptua in sit aliquyam erat ut dolor dolore rebum.

Duis elitr erat vel. Dolor accusam erat. Takimata justo amet nonumy praesent eos lorem sanctus consetetur vero. Vulputate gubergren elitr et erat dolore nonumy quis vel invidunt lobortis et lorem at labore et nulla veniam. Rebum kasd diam sed dolor sea congue magna adipiscing sea est sed invidunt. Illum sit accumsan lorem sanctus nam clita stet at lobortis amet dolores dolor amet magna sed. Nibh gubergren ut kasd tempor et ipsum diam dolore. Sed nibh ipsum in lorem voluptua vero lorem sed nonumy duo.

Sample Output H3

Eos wisi sit dolore tation lorem voluptua nisl dolores lorem labore sadipscing ea feugait stet amet facilisi est. Elitr sea stet tempor nibh rebum dolores kasd sea nibh dolore eirmod dignissim erat. Qui sed justo velit vero ex kasd amet vero tincidunt dolor ipsum duo imperdiet eirmod. Voluptua eos nonummy sadipscing sit volutpat sit et justo quod sadipscing ipsum diam rebum. Ea no adipiscing diam dolore et dolor at lorem aliquyam stet dolor. Ut et eu dolore voluptua labore magna rebum diam qui sit et magna erat invidunt labore consetetur. Duo consetetur dolore lorem dolores invidunt nam dolor dolor et erat tempor.

Takimata consectetuer esse dolor. Dolor et at illum et tempor. No takimata accusam dolor amet nibh et ipsum amet lorem. Accusam lorem amet diam. Dolore kasd invidunt vero at stet dolor augue dolor labore sed amet facer justo quis dolore sit at facer. Voluptua lorem lorem amet nibh diam consetetur lorem lorem. Ipsum magna blandit consetetur wisi eos aliquyam consectetuer et sit eos facilisis diam. Eos sed amet est minim zzril lorem ut eos sit dolor tempor sanctus. Dolor congue aliquam sed at ipsum magna no.

Sample Output H4

Sea molestie invidunt qui eirmod velit sit. Consequat facilisi kasd sit magna nonumy sed nonumy quis amet nibh. Hendrerit eirmod et consetetur adipiscing vulputate sit sea commodo nonumy labore rebum stet gubergren sit vero. Ut possim illum amet nobis laoreet dolores te amet eu dolore eirmod consequat tempor. Et consetetur justo liber volutpat sadipscing justo. Eirmod consetetur duo augue vero sit commodo consectetuer elitr duo eros. Lorem takimata diam voluptua elit praesent soluta amet eos et sea aliquyam dolor. Magna justo ipsum gubergren nonumy est dolores eos. Labore sed sed gubergren augue et labore nonumy kasd kasd. Ea voluptua dolores dolor at lorem dolore justo hendrerit dolor.

Dolore diam zzril. Ut duis sed ut takimata enim sit et veniam soluta takimata eirmod commodo magna eleifend. Et in duis nonumy aliquip tempor ut ut lorem dolor lorem. Dolores dolore sit consequat rebum lorem ipsum velit vulputate eos est ea rebum feugait sit. Veniam consectetuer ipsum duo amet vero dolores nonumy sed vel et. Lorem euismod diam kasd ipsum dolore no et dolores. At praesent laoreet voluptua at wisi. Et at sed diam sadipscing hendrerit augue aliquyam dolore dolore sadipscing at stet molestie eirmod labore.

Sample Output H4

No labore sadipscing stet dolore consequat esse takimata eos dolore labore. At lorem qui accusam at et at dolor est nonumy nonummy magna et diam sit. Justo et odio blandit at dolore amet dolore et accusam in takimata dolor molestie luptatum invidunt. Duo consectetuer eum no elitr sadipscing duo elitr accusam lorem. Accumsan clita et gubergren dolores rebum dolores ipsum sanctus ut. Facilisi wisi eirmod. Takimata amet illum autem praesent in sed. Esse dolor sed rebum erat voluptua accusam gubergren stet lorem nibh sea. Aliquyam et no facilisi et at no amet dolore sed at accusam ipsum qui.

Id tempor clita labore nonummy volutpat odio voluptua et. Diam nisl vero wisi no eirmod rebum ut nonummy erat. Tempor augue erat diam sea sed dolore amet voluptua labore takimata lorem. Eros duis dolore feugait ut erat autem. Dolor eirmod amet kasd accusam nihil amet invidunt voluptua clita diam dolor et lobortis takimata labore takimata.