cloudformatter format requests: 5,751,794    pages delivered: 12,236,083

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

Sadipscing tincidunt sadipscing quis amet amet kasd dolore augue ipsum. Eirmod facilisis nisl. Nihil at et vero sanctus vero est tation erat invidunt nonumy et erat. Amet et ea et consetetur erat aliquam takimata diam. Sea duis feugiat kasd tempor invidunt clita magna labore elitr ut takimata eirmod dolore invidunt. Lobortis accusam dolor et sanctus amet dolore feugait vel invidunt. Sanctus amet at at sed esse nibh et nulla enim consetetur accusam tincidunt takimata diam magna. Elitr tation erat illum sit ipsum diam. Gubergren elit dolor no aliquyam vel eos amet kasd takimata vel. Enim kasd wisi magna et feugiat sit dolor illum eos duo et justo clita aliquip. In eu no.

Amet dolore diam dolore takimata vel iriure clita magna stet duis nobis diam sed dolore elitr. Qui vulputate rebum. Dolore invidunt aliquyam eu diam ea dolor amet no consequat elit et ipsum ipsum erat facilisis lorem sea. Accusam dolore dolore sed eirmod ipsum. Et et consetetur in et velit. Dolor veniam amet sadipscing takimata dolores amet veniam adipiscing kasd stet ea ipsum eirmod. Ipsum magna et. Nisl takimata vulputate magna elitr.

Sample Output H3

Amet diam dolore sit amet diam consetetur at est in et accusam duis in ut sed. Et zzril labore labore diam ipsum dolores eu velit. Dolore ex diam diam lorem. Eros est eos nibh duo kasd et et. Dolore magna justo kasd nibh et tempor aliquyam nonumy consequat sit invidunt. Est elit consequat. Stet voluptua kasd consetetur sit amet aliquyam.

Ut laoreet labore ipsum sea nulla amet vulputate sea dolores lorem iusto gubergren iriure sit accusam dolor no sed. Facilisis aliquam eu aliquyam duis ipsum sit kasd labore et ea labore accusam. Labore duo amet et nulla lorem eos elitr sit dolore labore. Lorem magna ea eos kasd gubergren eirmod dolor sed labore nonumy tempor molestie gubergren kasd velit lorem. Accusam voluptua kasd at imperdiet sit euismod dolore commodo eos nisl. Vero luptatum clita aliquam amet eleifend amet kasd sit est labore. Diam et consetetur.

Sample Output H4

Autem ut ipsum dolor invidunt elit elitr ipsum nihil qui justo et labore no sit. Et sea eos at justo. Nonumy no nulla. Et dolore justo ipsum at et erat magna duo nonummy labore et eirmod accusam. Volutpat dolores dolor vero nostrud sit. Lorem amet nonumy facer eirmod dolore lorem et magna vel est id rebum minim quod eirmod. Ad ipsum ipsum. Lorem at sit diam. Et et ut vel dolore dolores gubergren invidunt vero diam no eos et invidunt dolore invidunt eirmod vulputate ea. Takimata eos diam ut takimata amet nulla commodo. Amet possim lorem aliquip invidunt gubergren luptatum dolores lorem clita tempor esse erat ipsum.

Dolores duo elit et lorem possim lorem tempor dolor amet ipsum aliquyam. Et tempor tempor nulla aliquyam eu blandit at lorem rebum diam sit illum. Sit sed voluptua sed et nulla nibh diam dolor ut tincidunt esse vero. Zzril est diam kasd amet ipsum sadipscing vero. Est dolore accusam ut dolore clita. Lorem assum et est nibh gubergren tempor dolores erat feugiat amet dolor. Ipsum dolor stet tempor dolore et consequat eos et est magna elitr accusam sea. Nulla ipsum et congue diam sed magna diam ea ea gubergren est dolores vero. Stet ut takimata rebum vel ipsum duo sed dolor tincidunt vel nulla et sed justo rebum.

Sample Output H4

Et stet aliquyam accumsan nonumy nulla tempor et clita ipsum sea. Volutpat illum illum amet sadipscing delenit et. Ad sit kasd accusam et at. At sadipscing facilisis sadipscing accusam laoreet sanctus dolor tempor ut nonumy. Labore voluptua at sed et accusam erat lorem eros amet nisl vulputate nulla aliquyam clita est molestie no. Lorem ea takimata nibh augue est est. Ut ipsum dolore augue autem.

Amet magna sit sed sed et hendrerit et in eu odio. Justo at tation dolor dolor. Laoreet ea ipsum sed justo stet et rebum invidunt sadipscing accumsan. Gubergren eos consequat. Nulla magna dolore vero dolores autem clita consetetur lorem sadipscing diam aliquam liber eu quod sit. Ut sea blandit nisl et magna accumsan in diam rebum duis delenit duis amet augue labore. Dolor nulla et clita aliquyam aliquyam vero est clita euismod invidunt clita sed accumsan duo dolor kasd. Ea labore odio sea enim dolore praesent diam eos dolor lorem eleifend dolore dolor dolores kasd ut stet nulla. Et sed eu ipsum kasd. Esse accusam enim facilisi lorem. Eirmod ea dolor eirmod takimata.

Sample Output H3

Nonumy iriure lobortis. Kasd vulputate aliquyam stet. Labore et est suscipit ea takimata gubergren tempor eos at. Diam takimata elit iusto accumsan ipsum ad duis tempor. Ipsum est dolore dolor gubergren sadipscing consectetuer sit justo suscipit rebum. Dolore tempor praesent duo.

Magna no kasd gubergren et nonumy. Eos ea amet sea stet amet commodo aliquip sea magna kasd et lobortis aliquam delenit sit sed. Enim ad labore voluptua consetetur sanctus sanctus est nulla consectetuer duo hendrerit sadipscing nonumy at et sed sed feugiat. Sanctus dolor eos voluptua eos. Est amet sea et amet stet justo est et nam labore voluptua est amet invidunt. Lorem et dolor molestie nonumy eos amet esse iriure dignissim zzril lorem ad lorem justo vel ipsum est labore.

Sample Output H4

Feugait dolore est et stet dolor sanctus. Sanctus takimata consectetuer odio ipsum gubergren sed lobortis est. Dolore sit dignissim ullamcorper nulla dolore et eos stet eirmod odio et adipiscing. Et sanctus diam eirmod sit sit lorem option. Tempor lorem ipsum rebum.

Sadipscing sea sadipscing feugiat dolore aliquip gubergren kasd lorem velit elitr est rebum nonumy. Aliquyam odio lobortis. Et invidunt et justo exerci est clita duo clita eu commodo aliquip justo amet lorem ipsum aliquyam feugiat et. Erat kasd dolor vero accusam iusto amet eos est et sea dolor accumsan takimata accusam gubergren quis duo ex. Diam duo dolor sanctus et ut vero accusam. Euismod eirmod qui amet vel diam rebum duo gubergren dolor ut no sea sit elitr. Labore voluptua clita clita nam sanctus. At gubergren et erat ea diam et velit option vero aliquyam nulla et sea justo voluptua aliquyam.

Sample Output H4

Aliquip et illum ut eirmod tempor sanctus vulputate tempor no nonummy. Erat ipsum eros gubergren eos ea ipsum facilisis sed liber labore lorem. Erat dolores no esse kasd lorem lorem et sea kasd dolor sed et erat quis clita dolore invidunt sed. Minim nibh aliquip at congue. Elit magna kasd volutpat amet duis ipsum. Gubergren tempor ipsum ipsum lorem no adipiscing voluptua augue vulputate delenit qui. Consequat takimata invidunt et et takimata esse eirmod amet adipiscing amet tempor ipsum eirmod dolores dolor est ea. Tation sea ex justo rebum aliquam feugiat ut sanctus sadipscing clita. Eros consetetur enim consetetur takimata voluptua aliquyam eros hendrerit stet aliquyam dolor dolore aliquyam ea tempor est veniam veniam. Odio lorem sadipscing eirmod dolore labore accusam est nam et erat amet vulputate volutpat at sadipscing justo.

Qui voluptua diam et augue erat stet dolor labore lorem erat rebum ut magna lorem kasd exerci dolor eu. Accumsan lorem accumsan. Invidunt labore labore praesent sit est eos dolores et aliquip sea et illum diam stet elitr et. Esse et sed voluptua accusam rebum ut sadipscing eos invidunt no adipiscing clita. Justo invidunt invidunt sed iriure eu amet stet magna. Labore et eos ut erat esse takimata tempor sadipscing voluptua amet nonumy voluptua feugiat dolore et feugiat eros et. Sea autem justo consetetur diam autem sed. Vel no ea vero eirmod ea sadipscing lorem diam ipsum rebum dolor.

More Sample Output H2

Nonumy consetetur duo magna gubergren eros wisi at delenit elitr diam duis lorem. Erat erat vero ut consetetur et sea dolores gubergren euismod sit kasd invidunt. Erat sit ipsum. Ea tempor sed at consetetur aliquip esse amet justo tempor dolor vero labore sea kasd eos at clita. Gubergren dolore consetetur rebum odio et sea rebum et diam consectetuer sit erat.

Duis erat sed magna invidunt. Duo kasd ipsum odio sea tempor lorem sadipscing adipiscing dolor nonumy. Sed lorem et. Vulputate sanctus dolor. Ipsum tempor sadipscing sanctus diam dolor erat justo nulla dolore magna wisi voluptua dolore in et elitr kasd rebum.

Sample Output H3

Et amet consetetur sed sed lorem facilisis sed sed diam invidunt velit amet est rebum ex zzril nulla. Feugait consequat ipsum eos et. Elitr amet no stet erat rebum gubergren. Et wisi dolor lorem sed stet sadipscing volutpat euismod eum adipiscing nibh in voluptua. Sed takimata amet. Dignissim accusam amet amet gubergren eum liber. Voluptua enim sit duis dolore. Stet dolores sea kasd tempor. Volutpat sit vero sadipscing facilisi takimata consequat magna amet justo aliquyam takimata. Adipiscing vulputate vero ea erat sanctus accusam.

Dolores lorem gubergren sit sit invidunt dolor feugait ipsum duo magna sea dolore labore ipsum. Aliquyam ipsum at et nam sanctus dolor esse dolore dolor et assum vel facilisis dolore. Sit elitr et et gubergren te sanctus amet ea facer consequat clita est no duo est autem. Adipiscing sed imperdiet dolores sit clita sit nostrud rebum lorem praesent sea sit. Invidunt tempor kasd nonumy. Sed consequat lorem minim at et dolores invidunt diam dolores eos dolor rebum consetetur lorem amet placerat liber sed. Et justo et iriure sanctus labore no nonumy feugait diam. Dolor consetetur lorem dolores dolore.

Sample Output H4

Dignissim sit erat odio amet nonumy hendrerit dolore lorem. Sea clita minim dolore et justo aliquyam. Ea sed sadipscing hendrerit kasd iusto zzril stet ea takimata nulla. Diam accusam autem clita ut magna dolores dolor in tempor duo at veniam amet tempor. Et invidunt rebum vero accumsan eros dolor diam. Consetetur ut ea diam dolore erat ut est sed molestie invidunt ipsum option sit dolor. Erat ea nonummy eos labore clita et dignissim et vel. Consetetur soluta aliquam justo ex nonummy exerci sed sit dolor kasd amet. Ut ipsum accusam sed amet duo labore nonumy stet at nulla eros no et ipsum eu justo rebum sed. Labore sea tempor sea tempor sit odio eirmod ipsum.

Duo hendrerit aliquam nisl rebum et quod et consequat. Diam magna sit nonumy in iriure. Nulla sadipscing diam nam dolor diam hendrerit sadipscing et augue est dolore augue sit. Sea dolore stet voluptua tation doming eirmod sea amet sadipscing takimata. Gubergren kasd vero duo dolor lorem.

Sample Output H4

Erat erat consetetur consequat exerci voluptua stet eu dolor possim esse consequat dolore lorem. Liber autem accusam nonumy duis accusam invidunt zzril quis sit eos vel et. Te amet diam dolore praesent tempor erat feugiat ea facilisis nulla dolore in gubergren sanctus invidunt et. Vulputate sanctus tempor elitr sed. Eum voluptua amet rebum lorem eleifend velit stet dolor nulla. Sed minim duo duo lobortis gubergren vero sed hendrerit nibh ea magna. No eos at amet amet gubergren lorem dolore lorem quod dolore. Et et et et nonumy duo labore magna sea. Kasd odio nam et dolor stet stet autem voluptua sadipscing.

Eirmod voluptua laoreet hendrerit dolores eirmod et ut vero justo in euismod sed. Hendrerit dolor dolor sea erat sit dolores eos duis labore duis clita vel no eos diam volutpat diam. Tempor kasd takimata nulla aliquam illum sit kasd invidunt eos. Sadipscing sed est duo erat. Clita consectetuer eum sit labore sanctus vel. Diam est sed eu nonummy ut et dolor et invidunt et qui et. Accumsan eos nonumy diam voluptua vel feugiat elit sed augue aliquam iusto clita magna eirmod. Illum est feugait aliquyam hendrerit dolor lorem duis vero accusam sed. Iriure ea labore dolor rebum at clita. Sanctus vel feugiat augue no sed ea iriure sanctus vero eos esse no commodo dolore sanctus voluptua labore. Sea duo ut labore diam stet diam ipsum hendrerit.

Sample Output H3

Nulla dolore dignissim dolores consetetur diam vero amet aliquyam. Lorem tempor no ex ipsum dolor tempor sed at lorem at amet. Ut volutpat magna. Clita duo sit takimata takimata dolores justo wisi diam labore hendrerit elitr sit est magna. Erat erat elitr lorem option aliquyam te. At et nonumy dolor eirmod vel. Ea clita stet eum.

Sanctus eros sea dolore eirmod sea duo amet et takimata vel tempor diam sanctus lorem sed aliquip. Eos takimata esse consequat in sed sanctus. Diam ipsum sit erat volutpat sadipscing ipsum esse vero tempor rebum et kasd dolore nulla consequat. Laoreet labore et sadipscing diam erat ut kasd sit lobortis lorem enim lorem lorem lorem labore est ex justo. Diam et tempor vero sit dolore. Veniam hendrerit clita tation amet ut feugiat rebum diam volutpat justo invidunt et gubergren. Aliquam volutpat lorem.

Sample Output H4

Et luptatum diam suscipit aliquyam nonumy dolore ea ipsum consetetur sit elitr elitr vero. Justo ea sit est ipsum sit hendrerit sadipscing et consequat rebum lorem sed accusam lorem. In aliquyam sit et rebum sit rebum nonummy consetetur. Rebum dolore amet accumsan ipsum amet amet accusam duis aliquip magna dolor vero est exerci sed eros lorem et. Gubergren sadipscing lorem et accusam sit diam.

Dolor dolor dolores sed amet dolore in commodo hendrerit nisl justo lorem tempor et. Dolores ipsum lorem sit diam mazim sadipscing no erat nisl dolore tempor. Iriure ipsum invidunt diam sadipscing erat ut. Et ea sanctus eos et sadipscing labore et dolor odio. Accusam eleifend lorem et velit ad no dolore no elitr ullamcorper voluptua ipsum nibh dolore takimata. Enim duis gubergren elitr dolore ea delenit labore stet nonumy dolor duis. Facilisi magna dolore et amet sit eirmod zzril magna at labore sit nam kasd.

Sample Output H4

Gubergren minim dolor invidunt ad sit kasd tation magna magna consectetuer diam assum diam at consectetuer justo qui. Accumsan consetetur aliquyam rebum ut duo vulputate velit diam voluptua. Duo eos augue amet ipsum iriure sea at amet et dolore diam dolor ut eu dolore kasd. Justo magna diam tempor sea sea amet aliquyam ipsum et duo esse invidunt facilisis amet qui stet dolor sed. Takimata facilisis vulputate at velit sed diam.

Feugiat at dignissim delenit illum diam at ut magna delenit accusam lorem. Nihil elitr no takimata ex sea in molestie et et accusam velit magna ipsum iriure. Et kasd clita sea lorem molestie quis dolore. Lorem tempor sadipscing blandit et ad dolore no ut dolores ipsum zzril ad aliquyam et ea erat. Elitr illum sed ut adipiscing facilisis consequat dolore.