cloudformatter format requests: 1,836,252    pages delivered: 4,907,914

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

Vel consetetur id sed gubergren ipsum et vero sit sed sit et sit et. Et eirmod labore clita invidunt suscipit no est tempor stet sanctus. Dolore te nobis et at consetetur elitr eros tation et et dolores exerci. Aliquyam praesent nulla. Duo sed sanctus stet dolore eu diam in at sit justo sanctus takimata. Lorem no eirmod ipsum praesent. Vel invidunt lorem minim dolores et in sit ea nonumy at nihil mazim at quis.

Vulputate sadipscing eos dolore tempor lorem placerat sea dolor. Nobis stet ex. Consequat labore diam dolor amet vero rebum sit duis eirmod lobortis justo tempor consetetur velit adipiscing euismod tempor. Consetetur justo sanctus autem et tation consequat. Lorem dolore autem nonumy diam consequat magna at rebum et magna erat. Est elitr aliquyam labore eum duo dolores dolor duo et magna rebum eirmod sadipscing suscipit iriure nisl voluptua. Sadipscing te at clita aliquyam amet est lorem eos qui voluptua ea. Amet aliquip diam diam at. Eum dolor justo dolores clita facilisis aliquip quod ea sed in rebum takimata consetetur. Voluptua ad sit no lorem labore nonumy amet erat doming vero ut sit. Soluta et magna et nonumy in dignissim eos.

Sample Output H3

Labore dolor euismod diam. Consequat sanctus ipsum accusam dolor dolore sed sadipscing rebum at sed exerci eos sed velit ut diam. Magna elit eirmod voluptua vero duis clita volutpat ipsum eirmod sed aliquyam erat nonummy dolore accusam imperdiet diam. Ipsum gubergren sit clita sed dolores amet dolor ut kasd luptatum magna magna sadipscing dolor in. Sea vero euismod sanctus dolor et sea. Erat duo laoreet amet. Dolor euismod illum ut eirmod diam aliquyam justo kasd. Ex vel sit nonumy et blandit gubergren invidunt sea et vero stet eos dolore dolor sit diam exerci euismod. Eirmod et ut nonummy stet eos invidunt at lorem. Sed accumsan sit ea sed illum sit amet tempor justo exerci ex rebum et dolor sanctus nam est.

Lorem lorem dolore sanctus te in sadipscing hendrerit at ipsum magna magna nonummy dolores est praesent. Laoreet dolor accusam amet accumsan magna takimata kasd et dolor justo voluptua sea molestie feugiat minim. Vero ullamcorper rebum ullamcorper odio justo eirmod voluptua vero facilisi accusam. Justo clita kasd labore diam aliquyam invidunt rebum clita sed commodo nonumy amet. Labore vero volutpat enim. Amet dolor diam. Rebum tempor euismod et et praesent quod duis et ut option rebum dolor facilisi et dolores. Amet lorem labore dolor kasd sea ipsum consetetur dolores dolor. Et in stet at vero. Et ipsum consequat gubergren lorem sit vero quis dolore.

Sample Output H4

Stet clita dolore elitr ea. Nonumy dolor elitr rebum ipsum clita sea diam ut est elit iriure dolor. Et est dolor sed diam ipsum in hendrerit. Dolor est stet ut dolor aliquyam ea clita commodo gubergren lorem et nonumy illum nonumy stet. Eos labore liber te sed justo sed liber at nulla vero kasd. Adipiscing vel consequat velit magna no in ut no sit aliquip sadipscing dolore et elitr consequat. Et sea erat nulla sit at accusam tation stet diam accusam dolores nonummy laoreet sed sit velit sed enim. Et ea aliquyam in erat ipsum aliquam lorem sit sit. Adipiscing est sadipscing. Et dolore et ut no et at takimata.

Accusam amet hendrerit quis elitr augue lorem dolore dolor. Lorem clita ullamcorper aliquyam dolore tempor duo sadipscing dolores. Et clita elit rebum at justo kasd veniam tempor sanctus eum sea tincidunt et. Dolor magna dolore gubergren sit. Eirmod no labore dolores eirmod vel. Cum eos vero ex suscipit vero ipsum nonumy commodo in dolor eos blandit tation elitr justo. Sed vero molestie.

Sample Output H4

Takimata tincidunt duo dolores erat et. Consequat dolor iusto eum consequat sea vel lorem sit duo sit hendrerit duis ea stet diam ut. Sanctus dolor sed dolor ipsum magna kasd iusto. Luptatum wisi dolores in est magna elitr. Amet sed aliquyam dolor blandit sed luptatum invidunt lorem eos sed consetetur in et commodo quis. Stet et stet magna quis vulputate vel sadipscing vero dolore lorem sed eros nonumy. Accusam stet at dolore vulputate nulla accusam vulputate sea et ipsum no. Sed no sit et laoreet invidunt veniam amet aliquyam invidunt dolores nonumy et no diam dolor.

Et diam ipsum dolor et. Amet eirmod odio sed et esse duis et magna no ea consetetur ut labore. Et duo luptatum elitr voluptua takimata gubergren sadipscing et elitr diam erat. Lorem dolore lorem est eirmod nobis lorem dolore soluta qui. Et eirmod at. Dolor consetetur illum sed dolor amet ipsum no dolore amet et est sanctus augue et ipsum in. At amet lorem quis in sanctus soluta. Elitr duo labore ut dolores tempor et lorem sea erat tempor kasd magna sea. Vero et voluptua et duis ipsum et ea dignissim justo zzril rebum aliquyam at tation duo euismod.

Sample Output H3

Nulla et at clita dolore sed. Ipsum sanctus eirmod lorem dolore at dolores et voluptua lorem ullamcorper labore takimata illum et. Feugiat velit magna vero ipsum nonummy wisi amet dolore. Aliquyam blandit diam dolore kasd justo dolor sed eum eu aliquyam aliquyam et dolor. Magna wisi eos. Dolor lorem aliquyam dolor adipiscing erat. Illum lorem aliquip diam diam consetetur sea.

Dolores est duis hendrerit et invidunt ea adipiscing at nonumy. Et wisi sed et et sadipscing dolor. Autem at magna. Et dolor elitr et et vero facilisi ipsum eos sanctus diam nihil vel dolor rebum at. Aliquam esse duis duis duis vero stet at sed sed ut te justo feugiat. Consequat consetetur mazim dolore at elit elitr amet. Erat elitr consetetur rebum lorem consequat dolor erat lobortis ex kasd. Eirmod zzril mazim eum erat amet erat lorem at at ipsum at veniam kasd amet.

Sample Output H4

Eirmod ut elit sed kasd at cum dolores. No et sed in ipsum consequat ut tempor dolore clita sit dolore. Gubergren stet clita tempor dolore eirmod invidunt adipiscing in dolor duo eos lorem dolor. Voluptua consetetur diam eirmod diam facilisis vulputate dolor accusam odio. Diam vulputate sea congue tempor sed iriure sed et praesent et dolores rebum et dolore dolore accusam ut kasd. Erat velit takimata kasd eirmod laoreet stet est praesent tation dolores sed liber dolore magna ad takimata diam. Exerci aliquyam minim in magna consetetur gubergren diam in sed clita dolores amet gubergren vulputate. Lorem magna amet consetetur labore et tempor vero duis ea elitr. Takimata ut option consetetur amet tation dignissim ut sanctus elitr at praesent diam te diam diam.

Facer magna rebum lorem diam clita facilisi zzril sea sadipscing veniam diam dolor dolores. Magna eirmod diam ipsum lorem labore blandit tation. Wisi clita voluptua dolor et magna voluptua diam lorem et consetetur consetetur. Lorem vero rebum molestie ut duo feugiat facilisi consectetuer consetetur sea erat vel at amet. Dolore at et elitr nonummy. Ipsum ea aliquyam lorem justo et duo labore.

Sample Output H4

Nulla lorem labore et. Ea amet et aliquyam zzril erat duo dolor et wisi dolores diam lorem justo consetetur stet sit esse eu. Lorem et volutpat dolore. Sed praesent dolores dolor accusam ipsum eos duo diam magna at sanctus stet diam elitr. Consectetuer dolores ea invidunt eos ut et commodo aliquip eros kasd magna eos justo duo ipsum. Sit elitr stet wisi sit sit vel kasd feugait dolore ut lorem magna ullamcorper kasd est. Congue commodo accusam stet eirmod sanctus sit. Et consetetur eirmod volutpat consetetur sea dolor.

Duis nisl nulla. Vero dolores facilisis ullamcorper veniam vel duo rebum ut et. Feugiat sadipscing diam et sadipscing nonumy clita invidunt amet dolores aliquyam takimata dolor exerci delenit ad ea. Sadipscing consetetur facilisis voluptua sit at vel facilisis eirmod sadipscing. Dolor molestie elitr.

More Sample Output H2

Est dignissim dolor kasd vel blandit zzril praesent. At sadipscing no dolore sit ea justo lorem dolore magna voluptua nulla. Sadipscing dolore sanctus sit sit esse clita sadipscing. Eirmod et sadipscing cum erat vero lorem sed mazim aliquyam sea vulputate placerat ea. In invidunt sed est lorem dolores dolore amet aliquyam labore clita. No labore sit clita ut no no.

Nulla luptatum invidunt sadipscing est nonummy eirmod amet lorem amet. Amet labore sadipscing magna consetetur sea facilisis et. Dolore sanctus ipsum sit takimata nonumy sanctus elitr. Eirmod magna sea nonummy no ut eirmod iriure clita consetetur lorem hendrerit assum magna amet tation hendrerit at. Tempor sit duis nonummy dolore. Iriure erat dolor ut tempor ea nonumy nulla diam eum. Sea iusto vero sea voluptua. Sit lobortis sed labore rebum. Et voluptua dolor ipsum et est sit nostrud aliquam aliquyam clita ea esse elitr sea te feugiat. Clita tation ut kasd invidunt eu sit illum gubergren lorem.

Sample Output H3

Tempor adipiscing aliquip lorem consetetur sea ut ipsum vero facilisis doming eirmod dolores sed gubergren gubergren. Vel clita tempor voluptua et et molestie quis tempor vero justo dolor magna amet. Sea sadipscing sadipscing lorem diam et ipsum ea diam elitr est tempor et. Ipsum vero et sed lorem no suscipit sit sit lorem quis rebum lobortis. Ut et justo nonummy dolore consetetur aliquyam at ut erat stet nulla erat stet quis et nulla. Dolore eos nonumy amet sit eos et tempor sit clita sea nonumy. Et justo elitr rebum. Esse sit vero et dolor vero nonumy duis sed wisi esse mazim sit justo doming at kasd et dolores.

Amet exerci voluptua magna dolor et erat hendrerit no iriure dolor volutpat velit ad magna clita option dolor ea. Ipsum amet dolore magna et facilisis diam stet ea dolor sit eros aliquyam sanctus et qui magna et labore. At eos dolor eos sadipscing at duis tincidunt ea nonummy kasd voluptua dolor eos amet est eu amet sea. Eros et accumsan eos delenit justo stet illum. Facilisis magna diam dolor takimata sit sit ipsum no eirmod ipsum et dolore ipsum justo nibh accusam. Eos nonumy duo diam ipsum et sit kasd. Volutpat at sadipscing vero molestie clita. Vel eleifend accusam clita consetetur sanctus esse vero clita sed sed esse diam. Sanctus sed sadipscing erat lorem erat vero. Sed eos dolor at et vel eos amet stet te accusam ut.

Sample Output H4

Et gubergren veniam sit illum dolor lorem amet est. Est gubergren clita dolor ex delenit tation luptatum sed no odio. Kasd et duo. Labore et sed. Dolores voluptua nonumy. Eirmod dolore delenit dolor iriure stet. Et molestie minim aliquip ad ipsum voluptua justo et. Est at labore et eros eos vel lorem in sed ipsum ipsum invidunt facer sanctus ipsum tempor nonummy. Ea nostrud accusam sit nostrud assum erat.

Magna eos vero sit gubergren et clita sit sanctus ipsum. Justo nonumy lorem tempor labore et wisi ut. Voluptua eos consetetur. Molestie dolor duis labore aliquyam diam autem ea et. Consetetur et est dolor. Magna euismod kasd duo ut rebum erat iriure te labore clita eu. Consetetur amet sea ea erat euismod vel ut labore at et ea tempor erat lorem sed tincidunt et ipsum. Nonumy zzril sanctus ea vero. Blandit accusam takimata ipsum eirmod dolores gubergren. Eirmod dolor ipsum diam diam aliquyam et amet dolore ea hendrerit dolor.

Sample Output H4

Diam dolor invidunt dolores sed delenit labore clita labore sadipscing. Eum et elitr ut clita rebum lorem est est gubergren luptatum tincidunt. Voluptua volutpat consetetur. Ut dolor id eos exerci sit stet vero et et lorem ea vulputate no aliquip. Justo ut no at rebum kasd magna dolor dolor. Eum kasd diam diam sed et qui nonummy gubergren dignissim luptatum eirmod labore. Augue eu lorem ipsum ut lobortis tempor duo. Sed diam feugiat no sit sea facer diam gubergren in et ut dolor eum voluptua tincidunt est eum. Lorem amet aliquyam zzril adipiscing accusam. Ipsum eros laoreet ea velit nonumy no ea lorem stet illum vulputate dolor voluptua nonumy sadipscing facilisi dolor dolor.

Et nulla iriure zzril diam facilisis molestie sit lorem stet sit tempor. Est stet invidunt consetetur justo sadipscing volutpat lorem augue delenit sadipscing ipsum clita aliquam eu takimata. Et nibh eum tempor dignissim lorem aliquyam ea clita sed feugait. Amet lorem dolor. Et sit at esse stet vero.

Sample Output H3

Et accusam facilisis lorem dolor consequat kasd sanctus nonumy diam elitr invidunt. Ad ipsum ea consetetur no sea duis vero ut vel delenit. Id dolor ipsum est tempor sed sit ut rebum sanctus ex. Autem duo ipsum et sit erat facilisi sea eirmod takimata duo dolor. Sed tempor dolores gubergren aliquip takimata iriure et. Facilisi tempor sed dolor consequat. Dolor amet commodo eirmod ipsum aliquyam facilisis elitr at ex accusam nonumy est sanctus.

Sed est clita gubergren dolor sed at diam accusam no eirmod in consetetur sea facilisis. Consetetur voluptua eum labore gubergren aliquyam consetetur no. At ut eu sit amet ipsum. Veniam sanctus elitr lorem lobortis vero sea duo sed et et amet sed lorem ut sit vero ipsum. Congue nonumy gubergren exerci lorem veniam lorem amet facilisis lorem delenit sadipscing nisl in. Kasd eirmod et et aliquyam sit volutpat tincidunt elitr magna sit lorem justo sadipscing. Takimata sanctus magna at tempor ea suscipit dolor elitr sadipscing feugait ex aliquyam rebum iriure sanctus. Eos diam in at erat dolor vero. Dolore vel dolor. Lorem veniam no dolor volutpat sit.

Sample Output H4

Erat nisl ad accumsan diam iriure erat. Sit eirmod veniam magna sit et doming et sit molestie dolor lorem. Aliquyam sanctus ea lorem stet nonumy sit. Lorem nulla dolores vulputate option qui. Justo lorem molestie. Eos ut consetetur nostrud accusam tempor takimata accusam. Justo duo aliquyam. Esse accusam eu nihil lorem accusam diam sed dolore magna sit takimata vel. Dolor adipiscing et takimata sit lorem vero. Sanctus tempor sanctus sadipscing dolores dolore erat molestie nulla aliquyam.

Delenit vero ipsum sed ipsum praesent eros stet. Aliquyam vero accusam sadipscing sadipscing feugait sea no eum accusam aliquyam sit elitr et enim ea et. Tempor iusto sit sadipscing iusto sed dolore rebum nonumy euismod ut tempor. Vero elit justo dolor clita sed labore hendrerit et gubergren voluptua amet gubergren ut ipsum. Minim sea et feugiat erat tincidunt lorem amet lorem blandit aliquyam. Erat est veniam sed diam sed hendrerit et takimata hendrerit praesent sed eirmod clita.

Sample Output H4

Tempor elitr kasd nonumy delenit euismod eros lorem rebum eirmod. Dolore nonumy duo. Amet te quod dolor dolor enim labore suscipit justo sed invidunt. Eos vulputate sadipscing diam erat dolor consetetur rebum kasd. Te eum lorem at consetetur diam. Sea vero diam takimata ipsum nisl dolore quis sit kasd labore dolor soluta. Sed sit at dolor augue et nonumy consequat lorem nonummy aliquip sed labore sit sit sadipscing sit et. Clita gubergren diam gubergren. At labore sed rebum et elitr kasd vel diam augue consectetuer duo sed diam nulla takimata. Eum quod ea ipsum vulputate justo dolore eu elitr voluptua stet consetetur kasd dolore et invidunt enim quis. Erat rebum ea ut dignissim takimata dolor.

Feugiat ea consetetur facilisi sit consetetur velit dolor amet vero liber illum. Et elitr ea magna ipsum clita zzril at ipsum. Amet et sed eum consetetur clita dolor eum dolore no lorem ut dolore et. Facilisis nonumy veniam sed sed consetetur no aliquyam vero eos nisl elitr eos odio sed. Exerci et invidunt. Lorem nulla zzril. Eum ut tincidunt lorem diam vulputate dolor dolore lorem sanctus diam.