cloudformatter format requests: 2,413,777    pages delivered: 6,382,243

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

Diam no eos est et takimata consequat elitr duis amet accusam. Duo facilisis dolore sit iriure. Ipsum ut dolor est sit. Adipiscing et iriure ea ea. Elit gubergren nonumy clita et tempor ea et ipsum amet ipsum tation.

Et at tempor sanctus accusam in vel zzril tation. Qui et stet diam est lorem. Duo sed sadipscing eum ut clita aliquyam ipsum lorem magna. Kasd ipsum dolore diam est vero consetetur et ea takimata at mazim no labore vulputate stet. Ut invidunt autem sanctus ipsum erat tempor dolore takimata consetetur tempor stet ut nisl accusam gubergren magna dolor.

Sample Output H3

Vero gubergren et kasd rebum zzril est vulputate. Labore exerci et amet sit consequat in dignissim sit sea amet. Minim dolore erat sanctus duis ipsum lorem et et nostrud. Diam sit molestie duo nobis dolores ipsum nonumy volutpat rebum aliquyam accumsan sit diam clita. Dolores sed lorem stet adipiscing dolor ut ea invidunt clita eirmod praesent clita labore lorem. Hendrerit dolore est duo kasd enim sadipscing ipsum lorem justo diam feugiat dolore. Sed molestie sit volutpat eirmod consequat kasd eirmod eu dolor gubergren.

Diam dolor magna diam. Dolore in lorem justo dolore at eum labore consequat stet sed minim tincidunt dolore praesent. Duo illum duo stet stet sit gubergren sanctus duis et. Gubergren amet dolor takimata et elitr sed ipsum velit eirmod no nonumy et at ipsum vero diam. Nonumy et eum ea est nonumy dolore stet vel et autem dolore rebum aliquyam ipsum te et dolores et. Diam volutpat amet. Clita sadipscing elitr erat aliquyam nonumy consetetur at et et amet. Diam takimata rebum stet voluptua gubergren sit no ut eos diam ipsum ipsum aliquyam sed lorem. Voluptua dignissim cum at elitr.

Sample Output H4

Sed dolor soluta diam gubergren suscipit clita magna consetetur diam accusam takimata lorem justo nonumy sed accumsan liber labore. Justo et sadipscing amet dolor nonumy no facilisis sit elitr dolor lorem ut dolor amet. Facilisis sit duis dolore kasd sea. Takimata voluptua praesent sit vero. Kasd sed assum justo dolor sadipscing consetetur sea dolor erat et sed sit tempor ipsum at et. Qui dolor ipsum sit tempor est dolore minim clita augue duo at nonummy tation diam dolor ut stet consectetuer. Dolore feugait sanctus et at et dolor et sed iusto takimata consequat lorem tincidunt magna et. Feugait sed eu elitr.

Veniam diam tempor et dolore eirmod. Blandit nonumy sanctus elitr. Kasd sed erat diam ea clita ad labore takimata et nisl et ipsum laoreet invidunt praesent amet eos. Accusam sadipscing in gubergren. Feugiat vero aliquyam erat justo est cum et kasd consequat accusam suscipit dolore autem voluptua et facilisis in sadipscing. Est accusam magna facilisi ipsum.

Sample Output H4

Lorem clita accusam ipsum dolor takimata lorem sit accumsan ea ea elit ipsum eirmod eos kasd. Justo delenit sanctus eum dolor commodo elitr qui duo ut velit doming gubergren. At no aliquyam lorem sadipscing justo ipsum assum. Elitr amet dolor aliquip eu sea nonumy esse vero consetetur erat tempor nonumy lorem doming ut stet. Ipsum et est duis aliquam option voluptua sadipscing. Et amet in nisl feugiat amet eleifend sed gubergren. Consetetur vel exerci erat stet wisi dolore. Dolor tempor esse ipsum volutpat aliquyam dolor tincidunt ut sed tincidunt duo odio diam consequat. Ut assum aliquip odio kasd suscipit ullamcorper nisl vel iusto et magna dignissim ut.

Labore ea ut vero dolor lorem ipsum exerci stet sea nibh vero sanctus hendrerit no duo sit. Sadipscing consetetur kasd delenit ipsum ea aliquyam dolores ea stet gubergren at lorem dolore. Quod labore dolore est clita ex dolore diam dolor nulla at at labore consequat. Congue dignissim consequat sea sed. Vero nisl stet elitr quod vel consectetuer esse.

Sample Output H3

Lorem nihil et illum sea sanctus aliquyam et sadipscing kasd et delenit sed eos possim. Esse gubergren labore sed sed exerci dignissim aliquip. Ea et clita molestie nulla rebum magna blandit invidunt accusam dolor rebum et amet facilisi. Ipsum dolores blandit duis mazim stet consequat et. Ea sed sit sanctus. Quis diam duo gubergren tempor sed consectetuer ea rebum zzril enim magna amet ipsum. Tempor magna te ut sit nonumy erat ipsum no at tempor lorem diam et. Eos et sit sit sed clita sed gubergren sanctus et nonumy sanctus.

Magna clita minim te amet exerci lorem magna elitr et lorem kasd vero elitr ea takimata labore dolore velit. Sadipscing sed duo lorem elitr sea no voluptua lorem. Id et at sit diam dolores. Elitr amet invidunt facilisis elitr magna eos elitr ipsum. Invidunt duis illum duis sanctus dolores consectetuer no sed quod suscipit velit tempor amet. Sea luptatum sit labore diam eos rebum. Adipiscing dolore ea eirmod diam ut dolore rebum kasd consetetur nonummy iusto tincidunt diam dolore kasd ipsum. Elitr tempor hendrerit ut at sea dolor te aliquyam eu diam velit takimata et accusam vel. Et consequat ipsum nostrud vero rebum aliquyam augue dolor at autem nonumy eos justo aliquyam justo et dolore.

Sample Output H4

Imperdiet est sanctus invidunt ex lorem stet tempor accusam eirmod sadipscing luptatum aliquyam. Ea justo qui elit duo takimata vel vero et ut dolore ut sea dolor magna sit. Possim consetetur gubergren euismod erat facer clita no. Sit voluptua sed lorem dolore dolor elitr odio lorem kasd sit erat duis et et invidunt accusam eos doming. Dolor lorem sanctus nonumy consequat. Lobortis invidunt dolore tempor ipsum takimata.

Euismod consequat ea congue accusam amet erat clita elitr tempor vel sed diam eos justo ut takimata. Illum rebum eos sit accusam dolor sanctus sanctus et lorem kasd labore dolor no sadipscing aliquip enim eirmod. In dolor consequat et iriure sanctus justo gubergren sanctus stet vel sit. Aliquyam dolor et quis voluptua vero ea illum facilisi gubergren vero. Takimata no diam dolores eos takimata nibh aliquyam voluptua labore et labore ipsum autem id dolor sadipscing aliquam. Suscipit est dolor est sit dolor sit facilisis sed vero diam amet elitr. Sadipscing et ipsum aliquyam elitr.

Sample Output H4

No nonumy wisi erat magna eirmod stet congue nihil clita nonumy eos. Diam dolores accumsan est et at aliquyam. Ut vero ipsum. Ut sadipscing nonumy voluptua consequat eos amet vel et sit sit et at dignissim. Eirmod sed sadipscing kasd facilisi vero dolor ut eros. Tempor facilisis duo consetetur autem eos et invidunt veniam. Nibh vero eos sit diam aliquyam. Et sed commodo sea nulla ea sed. Ipsum et clita. Nam diam esse minim commodo accusam veniam dolore sit duis et sit magna sed stet. Ea vero in.

Et ut feugiat gubergren ipsum imperdiet vero kasd dolor elitr ad et doming sea zzril. Facilisis vero aliquyam gubergren takimata et amet vulputate labore diam et dolor kasd diam vel consectetuer in takimata. Dolor takimata ipsum te in sanctus et lorem lorem est. Nisl stet dolores et lorem ea stet gubergren amet dignissim stet amet no. Voluptua et augue. Iriure labore no. Dolor nostrud ut diam lorem est diam invidunt aliquyam sed. Lorem elitr amet sanctus et takimata ipsum ut. Clita tempor eirmod clita id illum dolores molestie nonummy vero.

More Sample Output H2

Et ea consequat dolor ipsum consetetur ut eros. Euismod velit facilisi illum est. Voluptua autem aliquyam duo eu consequat sed nulla augue. Eos consequat enim tempor eleifend nulla accumsan ipsum. Esse diam ipsum commodo dolor rebum dolor consetetur et sit ipsum kasd lorem possim dolores elitr eirmod dolor vero. Eos dolor tation eos ea tation kasd. Lorem et ut amet no est amet. Kasd dolore nostrud diam adipiscing nonumy eos voluptua consequat elitr takimata clita dolor enim duis. Sit eirmod dolor est et et consequat vero et diam justo justo et.

Consetetur justo elitr elit takimata ut et kasd duo feugiat vel. Vulputate justo amet elitr takimata duis accumsan dolore nam soluta amet nonumy lobortis. Lorem ea exerci dolores ut at praesent invidunt stet et liber. Dignissim te magna. Ut diam takimata invidunt amet sanctus et duo ea iusto sed dolores amet gubergren sed accusam.

Sample Output H3

Magna est magna amet lorem lorem aliquam dignissim takimata nonummy molestie et elitr erat. Erat erat justo dolore blandit volutpat autem sadipscing vulputate dolor dolores dolor. Invidunt accusam clita labore takimata at erat diam laoreet. Et cum dolore sed lorem minim dolore accumsan facilisis kasd minim possim elitr. In nulla amet et kasd aliquyam illum eirmod dolor tempor illum qui ea molestie. Vel sit sadipscing sit sit dolor ipsum et elitr lorem lorem exerci kasd. Diam et ea eu ipsum veniam commodo elit diam kasd kasd eu labore aliquip kasd euismod aliquyam ipsum ad. Sed kasd iusto dolor in no sed takimata odio et nibh diam vero. Amet dolores diam ut stet et justo sanctus eirmod gubergren elitr dolor sit dolor voluptua praesent ex dolor. Invidunt gubergren erat. Augue sit eos et elitr sea dolor dignissim nonumy eum vel diam amet.

Invidunt facer ullamcorper eos. Sed no sea duo consetetur magna et duis euismod sit stet. Kasd illum accumsan liber nonumy duo duis dolor diam at dolore sea veniam laoreet magna ad augue. Et ea tempor suscipit assum ex rebum est dolore. Eirmod autem elitr sadipscing eos nulla eos consetetur consequat justo stet. Gubergren at aliquip molestie takimata amet euismod velit amet voluptua dolor consetetur eos et invidunt gubergren. Sanctus elitr duo tempor ut gubergren sadipscing kasd diam consequat magna praesent accusam et clita et. Hendrerit clita est amet magna rebum lorem consetetur et nonummy sit lorem accusam ut sed. Erat elitr consetetur facilisis ea vero et takimata sanctus erat quis dolor illum sed gubergren nulla vulputate. Sit diam sanctus no no sanctus justo sadipscing.

Sample Output H4

Magna dolores exerci justo dolore possim ut hendrerit labore nulla aliquyam ea aliquyam. Augue dolor ea esse consetetur eum est. Sadipscing dolor labore est diam ipsum amet et id voluptua rebum eirmod diam nonumy nonumy. Eos aliquyam stet blandit vero dolor vero invidunt consetetur diam consectetuer euismod sadipscing option. Commodo sadipscing at diam clita dolore dolores lorem. No dolor lorem iusto commodo. Dolor dolore clita diam wisi. Vel molestie magna et qui ipsum gubergren rebum ipsum sea eos amet feugait duo amet ipsum elit consetetur elitr. Dolore nulla in et duis nonumy ipsum. At clita augue lorem labore consequat lorem vero sadipscing consetetur te lorem eos justo nonummy dolor eu.

Sit wisi amet diam. Dolor in lorem duo sadipscing no elit. Sed sea est invidunt clita et kasd takimata erat accusam id est. Eirmod nobis dolor eum placerat dolore nulla sadipscing sit. Voluptua accusam kasd sanctus tempor molestie ut dolore. Dolore erat sed ea autem doming lobortis feugait elitr eos accusam dolor tincidunt. Amet no vero molestie voluptua et gubergren amet eirmod voluptua et aliquyam et nobis rebum ex. Amet no diam sed ut nihil invidunt eu invidunt labore ipsum eirmod. Magna clita dignissim ut kasd sit justo et delenit gubergren sit vel. Eirmod erat blandit dolore.

Sample Output H4

Facilisi lorem feugait ut dolor erat id. Accusam nonumy tempor ipsum magna elit dolor sit sea. No sanctus duo sit odio feugiat lorem voluptua sea eu lorem facilisi. Vulputate erat et magna et eos diam vero sanctus ut ut eos vero exerci iriure et sit nonumy tempor. Sed et eirmod tincidunt eos dolore clita justo tempor et kasd ea. At erat et eirmod delenit volutpat et adipiscing et takimata facer et tempor gubergren justo takimata. Sea eum clita justo eos nulla enim dolore no dolores kasd sea invidunt invidunt. Et amet consequat ea vel magna eirmod vulputate ea sea justo diam in voluptua et. Sadipscing clita magna stet vulputate. Aliquyam invidunt iusto consetetur vero est diam clita ut invidunt nonumy sit sit lorem. Iusto et nostrud justo takimata minim gubergren lorem wisi consequat et nonumy autem duo sit.

Invidunt ipsum justo ut in nibh at gubergren amet soluta ipsum et sit quis aliquyam. Autem assum dolore diam consetetur dolore erat et erat. Dolor commodo ea elitr consetetur sed magna et ea erat labore takimata erat veniam labore dolore sanctus stet. Accusam dolore consetetur in takimata sit ipsum. Autem erat vero rebum lorem lorem liber ut vero sit at accumsan. Dolor ut sit qui dolores takimata feugait gubergren sanctus facer et nulla erat diam takimata magna vero vero sit. Eirmod et erat sed enim ut ipsum sadipscing facilisis consetetur accusam sit. Luptatum ipsum sit ea sea diam nonumy nonumy eu kasd lobortis sit invidunt. Voluptua lorem eirmod amet accumsan amet. Tempor ex dolore est sanctus dolore lorem dolores lorem stet justo diam invidunt consequat.

Sample Output H3

Et luptatum amet takimata et nulla sanctus ea invidunt sed lorem diam consetetur takimata sadipscing illum diam. Augue dolore duis gubergren ipsum ut invidunt lobortis magna lorem labore duis est at duo nonumy sanctus labore. Tempor sit tincidunt clita labore zzril ea et diam et in ipsum eirmod amet elitr labore sadipscing consetetur et. Kasd et duo dolor facilisis eros dolore invidunt sea. Velit dolor voluptua gubergren.

Ut consequat eleifend feugiat tempor no no esse sea doming labore clita clita. Dolor amet et tempor clita wisi vel magna est dolor eirmod facilisis. Justo dolores vulputate nostrud consequat rebum sit. Nam consetetur clita. Sit clita aliquip eirmod aliquyam kasd zzril vero wisi eos sadipscing duo. Lorem aliquyam velit velit amet no accusam iriure labore in.

Sample Output H4

Et tempor ipsum clita no eirmod. In sadipscing gubergren soluta dolor et tincidunt magna takimata facer elitr et ut laoreet eos lorem nulla sit diam. Vel et justo duo et molestie et dolor eos dolores clita consetetur amet elitr eum. Assum molestie et dolor at diam et dolor sadipscing et ad no gubergren. Diam dolores dolore magna amet. Vero sadipscing magna duo accusam nonummy ut possim diam magna dolor nulla voluptua. Diam accusam sea magna ea takimata eirmod. At dolores accusam elitr tempor illum vero amet erat stet exerci rebum nonumy dolore at cum sadipscing gubergren clita. Elitr amet amet dolore tempor sit nonumy justo sadipscing dolor ut iriure sit takimata. Sit dolor erat accusam elitr. Amet molestie magna justo eu suscipit.

Nonumy eirmod lorem ullamcorper no hendrerit delenit diam nonumy ut. Aliquyam quod consequat diam erat et et dolore elitr nonumy iusto rebum voluptua consetetur sit no in. Stet est delenit duis odio accusam stet invidunt invidunt clita amet lorem sanctus sea dolore accusam molestie ipsum clita. Ipsum duis ea eos diam clita ex vero eos sanctus sadipscing duis. Kasd voluptua dolore possim sadipscing accusam luptatum ea voluptua labore dolor volutpat aliquam invidunt rebum sea est dolor. Dolor dolore voluptua rebum invidunt elitr suscipit dolores assum eos aliquyam nulla voluptua duis dolor.

Sample Output H4

Sanctus duis consetetur eos sit sit kasd eleifend. Est dolore sit ipsum esse sit et sed amet. Labore kasd nulla ipsum. Aliquip stet ullamcorper eum nostrud et illum eros nonumy kasd dolor sed nihil et. Justo sit feugiat nisl tempor justo aliquyam ipsum eirmod eum eirmod ipsum dolor et clita odio consequat invidunt nam.

Consequat delenit elitr autem. Te amet lorem labore sea elitr amet consectetuer takimata praesent ipsum accusam diam lorem amet gubergren. Labore dignissim accusam erat lorem dolores doming. Eirmod diam accusam duo. Justo facer vero et iriure molestie eu est et veniam lorem erat ea rebum sed ut at ipsum sit. Lorem illum hendrerit voluptua aliquam invidunt lorem. Erat et sit esse blandit vero autem.