cloudformatter format requests: 1,216,966    pages delivered: 3,137,407

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

Justo rebum consequat nonummy ut eos lorem nisl amet nostrud dolore. Veniam quod sed nonumy et dolores stet ipsum dignissim voluptua lorem kasd clita nostrud placerat aliquyam dolore labore. Autem vero sit eos erat sadipscing zzril nonummy duis lorem diam est sanctus lorem imperdiet. Sit lorem feugait ipsum aliquyam diam sed amet elitr magna magna elitr voluptua duis at. Sit tempor consequat sanctus delenit accusam duis amet invidunt diam laoreet. Ea accusam sadipscing te et dolor aliquyam voluptua sanctus dolore et voluptua. Sit delenit elit clita sea commodo labore aliquyam delenit velit lorem. Et exerci vero.

Augue lorem consectetuer dolor option odio eirmod. Erat hendrerit ipsum adipiscing justo et dolores ea autem. Et ea labore kasd vero eirmod nobis consequat dolores accumsan. Vero et sanctus molestie feugait iusto possim tempor enim. Sed eum elitr nonumy no zzril magna nulla sed et in magna. Dolor takimata veniam sit elitr eos magna ipsum lorem vel dolor amet duo ipsum clita consetetur dolor diam. Et amet facilisis diam. Eos lorem magna accusam accusam gubergren lobortis. Ipsum diam accusam ipsum aliquyam molestie ipsum vero invidunt dolore facilisi rebum amet iriure diam commodo dolor.

Sample Output H3

Sadipscing quod est dolor facer et ipsum. Voluptua hendrerit consetetur sed dolor sed. Sed exerci voluptua dolore ea. Commodo nisl augue in tempor. Amet sea takimata et justo labore rebum sea vero volutpat et duis erat voluptua takimata dolore autem. Hendrerit ipsum invidunt ex velit aliquip in ea est eos at. Facilisi nonumy ea erat. Ipsum consequat odio at amet feugiat consectetuer ut in dolore sit. Diam rebum diam no diam ipsum diam lorem lorem nisl sea magna molestie. Diam amet facilisi.

Sit lorem odio diam labore diam ad congue esse erat lorem dolor blandit ad. Illum sea sit sed velit erat sed at et erat consetetur accusam no et dolor. Diam magna dignissim amet diam ea quod sadipscing magna facilisi justo eos est wisi ullamcorper vero dolor. Stet magna autem sed sea lorem justo diam dolor quis sed odio at consequat sadipscing et. Et ipsum ipsum voluptua magna labore nulla. Erat kasd eos esse.

Sample Output H4

Aliquip assum nonumy molestie sea eirmod zzril iriure dignissim dolor lorem aliquip labore ipsum amet. Invidunt aliquyam nonumy stet eum voluptua laoreet kasd magna magna sed dolore feugiat nonumy nulla. Sadipscing est lorem dolores justo dolore praesent diam sanctus. Sit dolores diam amet amet ipsum ut vel. Consetetur option sed iriure.

Erat vero eu ipsum et rebum vel sit dolor duis stet praesent amet ipsum takimata nostrud clita takimata sit. Est labore invidunt ea justo magna. Dolor erat accusam sit nostrud vero. Diam sanctus voluptua autem eos euismod stet amet stet dolore lorem et et eleifend vel lorem in. Consetetur minim nibh consetetur diam erat sed dignissim et invidunt veniam et veniam labore hendrerit consetetur takimata ipsum diam. Vel sea amet suscipit et diam clita ipsum vulputate lorem eum voluptua. Dolores wisi sed hendrerit sit duo et ut dignissim autem. Et liber sed amet commodo nonummy hendrerit.

Sample Output H4

Sanctus duo invidunt aliquyam vero eos dolor duo zzril erat dolores nulla sadipscing et vel sanctus ipsum eos kasd. Rebum clita lorem nulla. Dolores molestie sit diam amet no in stet dolor doming praesent facilisis commodo magna eos et takimata et. Diam est kasd sit eum eum amet sed diam. Amet consetetur sit invidunt nulla eos. Est est ea et amet dolor dolor rebum. Clita amet no eirmod et nonumy elitr.

Dolores ut molestie eirmod nonumy illum sit no dolor sit dolor nobis aliquyam est elitr ut gubergren ipsum. Dignissim et sed duis enim lorem erat eirmod lorem in elitr takimata ut hendrerit tempor in duo et in. Lorem sit ut iriure erat amet diam takimata amet amet tempor gubergren ut eirmod sanctus justo sanctus. Justo et sed dolore. Dolores sadipscing consetetur dolores no duo ea vero magna. Accusam dolore ipsum dolore tempor ut eirmod diam vero nonumy eos et. Et nihil consectetuer sit ipsum vel amet amet sed rebum duis sit et cum diam sit velit. Vero in at rebum ipsum erat eirmod et nonumy dolore ut velit ipsum at minim sed nonumy nonumy elitr.

Sample Output H3

Congue magna sadipscing delenit tation placerat feugiat tempor. Gubergren id adipiscing vero liber ea at sea lorem rebum rebum dolore est duo elitr. Et diam nam et wisi tation gubergren. Duo stet veniam. Erat ullamcorper magna at consectetuer et accusam sea sit eos consequat ipsum dolore magna diam consetetur. Augue sadipscing clita duo sed te sit no zzril vel et.

Nonumy elitr aliquam dolor nulla elitr et. Duo dolore vel. Eirmod consetetur aliquip sadipscing. Amet ut ea aliquip ut accusam. Ea tincidunt kasd aliquyam ipsum et tempor dolore sed nonumy labore clita ullamcorper ut. Ipsum amet amet rebum nonummy lorem lorem dolor commodo enim amet amet tempor. Vel erat justo et. Iriure aliquyam dolore ipsum vero vel nihil ea veniam lorem gubergren tempor praesent sed.

Sample Output H4

In dolores diam veniam lorem molestie diam amet molestie dolore tempor amet. Ut sadipscing rebum diam dolore dolor. Et elitr et exerci aliquyam labore eirmod ipsum in eirmod sit. Sit suscipit magna sanctus voluptua gubergren. Nonumy sed invidunt vulputate te delenit duis eirmod est sanctus amet dolore. Magna autem nisl dolor sadipscing zzril elit amet imperdiet tempor laoreet sit magna et lorem. Vero eleifend nonumy aliquyam diam consequat accusam erat lorem lorem stet ipsum stet et. Duis ut invidunt odio et. Ut ut kasd lorem vero dolore lorem consequat sed nibh at takimata dolore ea ut takimata eos eirmod augue. Ut elitr amet dolor sanctus accusam ad diam voluptua gubergren sit volutpat takimata diam sanctus ut. Ea ipsum duo.

Augue vulputate ipsum amet magna nobis elitr diam augue minim sea. Commodo sadipscing diam sadipscing tempor laoreet nonumy rebum sea ea lorem clita qui augue consetetur. Sed elitr invidunt dolore consetetur no clita et duo dolores sanctus clita eu aliquip vel ea quis justo nonumy. Nibh ex at commodo autem et takimata ipsum molestie sed et consectetuer elitr dolores sanctus aliquyam rebum et. Hendrerit autem et vero et dolores tempor ea ipsum invidunt wisi dignissim aliquip vulputate. Ex eum veniam tempor ipsum accumsan dolor delenit tempor diam elitr eirmod ipsum et voluptua elitr. Aliquyam sea duo consequat. Iriure in dolore est nonumy diam feugiat justo ut sadipscing kasd kasd labore justo ullamcorper voluptua et. Lorem ut sit sed diam erat iusto lorem sit. Autem diam nulla diam.

Sample Output H4

Delenit accusam est eros ut dolore et justo facer et nulla euismod feugiat facilisi. Diam aliquyam et magna lorem feugiat dolor feugiat. Dolore nonumy sed sit accusam lorem sit possim dolor duis sanctus esse magna ullamcorper consectetuer ipsum sit diam sadipscing. Qui sadipscing diam nonumy. Nonumy gubergren dolore feugait duo eros commodo justo sit elitr amet nulla magna ipsum et. Eirmod et ut ut sed sea iriure lobortis diam ipsum et lorem.

Diam odio ipsum facilisis ea nonumy rebum aliquyam erat et et amet. Enim lorem aliquyam et sed sit autem diam. Duo sanctus labore dolore dolores dolores diam accusam eirmod augue velit. Ipsum sadipscing velit nonumy dolore esse lorem sea ipsum lorem aliquyam duis. Sed rebum ad nonummy sadipscing ipsum kasd iusto clita ipsum feugiat sadipscing blandit et. Gubergren no consequat.

More Sample Output H2

Invidunt kasd erat et magna. Labore elitr esse no dolor et suscipit vero eirmod. Et veniam amet dolor at dolore vero nonumy vero zzril ea augue takimata ullamcorper tincidunt eu. Lorem accusam vel aliquip sed imperdiet magna amet ea et ipsum aliquip eos molestie. Et in dolor et diam. Velit euismod lorem elitr luptatum ut vel accusam ea rebum amet aliquyam eirmod nisl lorem accusam vel vero.

Takimata diam at diam tation justo sadipscing est nibh quis elitr sit diam eirmod kasd delenit. Gubergren no clita dolore magna consequat justo ipsum stet molestie et diam adipiscing no tempor sit diam sea. Stet dolor labore magna. Diam voluptua nonumy ipsum lorem kasd amet imperdiet at justo. Illum lorem illum diam vero sea eirmod amet ut vero.

Sample Output H3

Ut ea amet amet magna clita dolores sit no consetetur esse vulputate est exerci ea et ut. Assum ea sadipscing et tincidunt vel augue dolore. Est sadipscing exerci et aliquyam amet diam. Accumsan gubergren nulla dignissim labore sed accusam ut facer sit diam voluptua adipiscing euismod. Kasd ea eos sit diam diam sanctus gubergren molestie lorem accusam clita no sit vel eos kasd sed sadipscing. Nonumy esse erat est iriure accusam dolore tempor duis esse. Sed amet eirmod dolor kasd. Clita eirmod erat justo vero no et stet sed. Et sea kasd aliquyam nulla eirmod et et in aliquyam justo no justo sea. Et ipsum diam sadipscing vel et eos molestie et dolores vulputate magna diam duis iriure.

Clita diam dolore stet invidunt feugait sit diam elitr eos takimata ipsum et nisl justo accusam. Takimata gubergren feugiat ipsum. Elitr gubergren et kasd. Sit sea delenit diam te sit diam sit. Voluptua sanctus wisi justo lobortis ipsum eum dolor ut dolore te. Odio gubergren ullamcorper possim ut. Magna justo clita accusam at vero stet augue dolore kasd duo magna. Clita ullamcorper diam consetetur diam vero nam no accusam justo. Stet diam qui dolore magna dolor sadipscing duis at blandit et sed diam diam dolore. Sea no clita et erat ea ullamcorper.

Sample Output H4

Sed ea sed kasd ipsum ipsum lorem praesent at nulla sit vero aliquyam. Invidunt ut et sanctus sed lobortis diam. Et clita nihil nonumy amet dolor tempor dolore amet ut et at ipsum dolore. Aliquip duis et consetetur aliquyam ea kasd kasd. Dolor diam labore dolor no stet veniam nonumy dolor eos nulla dolores qui justo. Dolor aliquyam elitr eos ipsum cum velit erat diam dolore lorem no facilisis sea lorem diam.

Consetetur dolore et sit facer eos magna eirmod quis vero aliquyam no wisi autem feugiat erat et et. Nihil dolores amet elitr dolore dolor consetetur velit ipsum nonumy justo elit dolore amet accusam quis. Dolore sit suscipit et dolores kasd. Sit lorem consetetur takimata est ex dolor aliquyam dolore dolores et vel nulla diam et lorem aliquyam dolor. Dolore dolor consetetur dolor ipsum amet voluptua lobortis magna duo nibh ipsum elit takimata. Stet lorem lorem diam amet accusam at eirmod.

Sample Output H4

Quis dolor et aliquyam ullamcorper elitr. Dolor magna amet odio invidunt dolor aliquyam nulla volutpat sadipscing kasd veniam. Ea aliquip sed consequat at te labore elitr sit diam suscipit ipsum. Ea wisi ipsum diam in eum at rebum ut takimata clita et gubergren aliquyam eos nulla. At euismod elitr sed amet gubergren sit erat dolor sit in magna justo autem. Duo vero nam sit ut sed amet.

Kasd duis clita aliquyam consequat dolores ea sed labore sit et aliquyam clita sit. Ullamcorper volutpat elitr et nihil congue dolore ea no ut dolor tempor. Diam et vero diam accusam ut ipsum ea. Eirmod minim justo option aliquip dolore justo velit takimata sanctus et sed suscipit takimata ut eum. No amet lorem dolor est augue erat lorem consequat justo diam dolor gubergren diam lorem. Clita dolore sit diam dolor dolor takimata ea vulputate aliquip eum ea volutpat at gubergren nisl invidunt.

Sample Output H3

Lorem justo nonummy dolore dolores hendrerit no justo labore elitr adipiscing diam erat justo amet. Sed diam tempor sit duis nostrud ipsum lorem eos et ea eos elitr no nonumy praesent illum amet. Te ut ut nonumy sit. Erat sed vero est justo soluta nonummy laoreet ipsum consequat volutpat dolore labore nihil lobortis dolores feugiat. Sit at erat voluptua vero dolor et ut. Ipsum ea sea nonumy amet velit vero wisi duo nonumy sadipscing. Et dolor wisi sed facer et ut ipsum nonumy.

At vero sed consetetur velit dolor dolores accusam. Cum elitr dolores. Sanctus augue aliquam rebum sea erat justo odio dolore vero consequat et ipsum dolor dolor. Lorem lorem et dolore accumsan praesent ea dolor elitr nisl ut duo vero et sit elitr ut rebum eos. Ut possim et sadipscing sadipscing. Diam sit ut. Consequat lorem autem sed vero amet sit ut vel eos eu tempor. Velit magna accusam feugiat dolore eos sed invidunt nam at feugait sit nonummy dolores erat. Ea dolore ipsum no esse eos clita lorem et et wisi velit blandit dolores justo erat ipsum. Et kasd eos no sea sed dolore esse diam erat vero sed ea et nulla.

Sample Output H4

Kasd ea sanctus. Et et consectetuer autem ut justo magna invidunt. Velit rebum duis sed duo dolor. Sed tempor magna autem ipsum et et aliquyam dolore ea vel dolore sanctus et. Gubergren justo praesent dolore elitr et dolore eos. Feugait lorem et diam sadipscing sed sanctus ea at dolor amet. Duis dolores wisi tempor aliquip hendrerit vero et erat hendrerit magna et dolores lorem erat ut. No consetetur luptatum dolore sit dolor est vero no invidunt amet no. Et no accusam et kasd ipsum ipsum. Et commodo molestie dolore dolor sit justo nonumy vero.

Dolor ea magna dolor et sadipscing dolor ea kasd clita. Ipsum erat kasd sit et vulputate clita wisi sadipscing voluptua accumsan. Tempor dolore amet sit amet. Tempor ut invidunt sed augue illum accusam sadipscing. Dolor et sadipscing eirmod tation enim te. Takimata et sit duo sit sed vero et et eos. Quis diam ut autem hendrerit dolor at diam gubergren. Ut congue facilisis sed ut kasd sit amet eirmod stet est nibh rebum eirmod lorem consetetur erat suscipit. Facilisis stet nonumy lobortis augue rebum.

Sample Output H4

Sed sit ullamcorper ea sanctus et eos. Vero accusam sed veniam lorem erat amet vel. Et eirmod rebum justo sadipscing. Erat luptatum et magna sit amet diam dolore voluptua et labore eirmod lorem. Quis et elitr nulla dolore sed eirmod sed ipsum sed ut illum eos rebum. Diam enim diam dolor accusam sit cum volutpat vulputate sed dolore tempor sea ut ut. Sed sit labore magna nonumy erat tincidunt lorem ea quis sanctus cum et delenit rebum.

Vulputate lorem clita in sed duis ut gubergren duis lorem dolore vel diam commodo sanctus clita rebum kasd. Sit praesent tempor dolor nonumy nonumy magna gubergren sea lorem kasd eos ipsum facilisi dolore dolores. Takimata ut illum possim et accusam kasd voluptua amet ipsum eros clita amet. Iriure lobortis wisi accusam nibh lorem sit et lorem. Sit consetetur kasd amet magna et clita ad diam est tincidunt.