cloudformatter format requests: 6,189,044    pages delivered: 14,122,073

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

Eirmod blandit ex sed tempor duis. Vero dolore stet esse diam accumsan consequat sed ipsum at. Erat nulla lorem sit duo dolore at at hendrerit sed sadipscing sed diam vulputate dolores soluta dolor sadipscing consectetuer. Dolor sit consetetur voluptua lobortis sed duo assum facilisis placerat eros dolor duo velit. Cum feugait lorem sit et est stet lorem aliquam ipsum lorem et te kasd takimata. Blandit accusam no et dolore eos erat minim sed et invidunt sit dolor dolor congue at. Velit stet no ea sed minim kasd ut sadipscing iusto in. Duo et diam facilisi at sea eos exerci rebum in. Minim aliquip invidunt lorem ipsum dolores ipsum dolore est eum enim sadipscing magna eos invidunt. Tempor elit invidunt nonumy te sanctus.

Facilisis et tation dolor consetetur accumsan accusam no sit nonummy erat feugiat vel lobortis elitr. Sed ut dolor kasd ut ea eos. Et magna veniam at consetetur eleifend nibh sadipscing duis dolore dolor diam at elitr diam. Eos feugait sit dolor et ut diam aliquip sanctus ut ipsum at aliquip ipsum at. Consetetur dolore facilisi.

Sample Output H3

Nonumy rebum rebum dolor. Feugiat tempor amet. At enim sed dolore odio in. At sanctus ad lorem kasd justo eros soluta aliquyam et rebum takimata et et aliquyam. Rebum diam consetetur dolore dolore takimata sit gubergren.

Diam diam lorem amet et diam lorem accumsan labore elitr amet no amet. Eirmod clita nibh rebum dolores nihil vero illum at lorem sit labore exerci ipsum. Molestie sanctus cum magna illum erat duo tempor est dolor esse et. Ad aliquyam accumsan lobortis eirmod qui facilisi. Lorem et sadipscing. Qui accusam duis amet tempor ipsum consequat ex diam vel invidunt nostrud nihil duo dolore lorem dolor consequat. Aliquyam accusam stet dolor sea.

Sample Output H4

Erat sea gubergren velit. Ut quis diam et facilisi qui invidunt ex quod invidunt voluptua sadipscing. Ipsum et takimata est vero justo consetetur duis ipsum stet et ullamcorper nonumy sed takimata erat et tincidunt sed. Sed sit ipsum consetetur et. Invidunt accumsan duo ipsum diam. Dolor et est sed labore. Volutpat placerat elitr consetetur stet nihil dolore. Ipsum minim sed sea eos duis labore mazim erat dolor dolores. Et labore illum dignissim vel qui vero takimata.

Invidunt autem consetetur sed ipsum blandit feugait aliquyam congue et erat vulputate assum placerat iriure euismod. Sed kasd sit eirmod. Sed labore lorem clita eos facer duo. Eos sanctus et sit facilisis lorem rebum sit. Ut lorem dolores ipsum. Ea magna amet diam diam et te labore.

Sample Output H4

Justo eirmod accusam et vero soluta kasd ipsum. Stet dolor eos ea sadipscing et rebum enim sed amet autem erat et labore adipiscing ex eos vero nulla. Soluta sed diam nonummy lorem diam consetetur. Elitr vulputate clita accumsan. Sanctus diam enim elit dolores accusam kasd amet. Magna nonumy dolor gubergren lorem ipsum nonumy diam eleifend sed ea accusam feugiat accusam et. Kasd dolore et ipsum justo eos et et illum et. Stet eos takimata lorem. Aliquyam kasd gubergren ex accumsan vero sed facilisis nonumy eirmod sed.

Consetetur diam justo elitr et sanctus nonumy nonumy sea dolor feugait vero. Eros amet nisl voluptua magna nulla at quis dolore clita clita voluptua nonumy ut est sadipscing nihil labore et. Eu at est voluptua et sanctus sit autem magna dolore. Labore diam mazim sit sanctus amet stet nulla et voluptua eum sed et accusam et. Accusam sit sit. Feugiat te placerat odio et stet ut eirmod at sanctus kasd kasd ut diam. Eu ea labore voluptua magna dolore ut sit at sed dolor velit suscipit. Erat aliquyam diam esse sit. Vero ut et autem ipsum soluta feugait wisi. Autem ea facilisis eirmod sadipscing labore elit erat vero rebum diam est.

Sample Output H3

Eirmod vero accumsan et dolore sit diam quis aliquyam aliquam sed iusto dolor vel cum sed ipsum nonumy. Gubergren ut labore accusam luptatum duis nisl ad sadipscing exerci dolore vulputate feugiat lorem qui et euismod at magna. Eirmod et et wisi sanctus sed aliquyam clita invidunt duo aliquyam sit takimata dolor. Sea ipsum dolore no at et rebum et sanctus sed dolore eum. Sed clita erat lorem duo duis et diam facilisi. Rebum duo vero et nulla at rebum invidunt nonummy et.

Kasd nonumy dolores dolor dignissim suscipit option stet at vero nonumy luptatum no hendrerit. At volutpat erat at suscipit sit sanctus et diam sanctus eos soluta nulla diam at et ullamcorper nonumy. Dolor nonumy iusto lorem. Elit dolor dolor. Nonumy sed placerat sanctus eirmod ut tempor in ut sanctus aliquyam feugiat accusam sit voluptua ea magna. Sanctus tempor ut ut congue exerci at facer ut ipsum dolor tempor dolore no elitr dolor consequat clita. Clita delenit lobortis sed dolor dolores. Gubergren vero magna nonumy sit labore iriure vero facer facilisi.

Sample Output H4

Lorem erat ipsum et labore et tempor magna vero et invidunt eos. Ea consequat invidunt quis et amet dolore nisl sadipscing commodo vel ullamcorper stet facilisis. At hendrerit lorem ea eos ipsum sit ut no ipsum nonumy takimata. Dignissim nonummy diam eirmod nulla vel dolore duo dolor. Takimata duis elitr. Est sit sit takimata ut nibh. Diam dolore dolor blandit duo diam. Feugiat diam stet sed eirmod eleifend invidunt eos duis consectetuer et kasd consetetur sit magna erat aliquyam sed. Accusam ullamcorper lobortis. Vero duo option rebum eum congue ut molestie. Et no accusam volutpat blandit erat magna kasd in et wisi duo diam.

Magna no diam eirmod diam lorem labore facilisis sea et eirmod voluptua. Consectetuer justo illum sanctus amet quod amet rebum aliquyam eirmod erat labore invidunt molestie. Amet nonumy et sit vero duo clita esse sit dolores gubergren eirmod. Eirmod stet ipsum facilisis lorem lorem ullamcorper in nonumy vero eos magna et wisi. Feugait sea eirmod sadipscing praesent lorem velit justo. Eos invidunt diam sea sit ullamcorper tation invidunt suscipit diam. Esse invidunt illum. Tempor diam eos commodo sit lorem ipsum et duo nisl aliquyam est. Et est eros lorem amet aliquam takimata lorem no dolore ipsum luptatum. Eirmod gubergren dolor nulla nonumy dolor iriure nibh sanctus vulputate dolore sed sanctus nihil et.

Sample Output H4

Consectetuer suscipit dolor sed justo sit. Diam sed praesent nulla sadipscing diam ullamcorper et vel sea clita eum vero eros dolor nam diam ipsum. Delenit no eos eirmod accusam. Diam stet vel. Et diam duo in dolore aliquyam rebum vulputate ea dolore erat ea. Ad lorem vel dolore dolore dolor gubergren. Ut at no tempor. Est tempor eum dolor et laoreet vero iusto dolore aliquyam dolor amet at amet eirmod magna.

Eu ex sit nonumy assum lorem takimata accumsan diam dolor volutpat at ipsum gubergren. Et eros diam consetetur placerat dolore et sed voluptua magna et takimata kasd nulla dolor erat duo eirmod. Sed est sit gubergren gubergren gubergren. Elitr esse ipsum est aliquip at qui kasd enim justo sed tempor at liber nonumy no. Rebum aliquam consequat ipsum sit nonumy eos lorem velit kasd et et ipsum et sadipscing soluta gubergren eros invidunt. Accusam vel et voluptua amet consetetur dolore consectetuer magna stet labore magna veniam. Nulla autem clita dolores diam dolor sit magna magna dolore consectetuer sed et tempor et ipsum duis erat elitr.

More Sample Output H2

Dolor consetetur sed lorem sea takimata molestie ut at et sit diam duo lorem sit vulputate mazim vel nulla. Ea duis consetetur tempor voluptua dolore facilisis dolor clita ea est lobortis et aliquyam elitr assum odio vulputate. Accusam ad possim sanctus. Amet nostrud lorem dolore eirmod vel sed clita illum et ex voluptua labore. Consetetur aliquyam kasd lorem eos kasd clita rebum. Eirmod clita eros labore sanctus blandit dolor. Voluptua nam ea et vel illum sit no et. Elitr eirmod ut amet et. Sit consetetur laoreet erat no et erat consequat suscipit clita diam hendrerit elit facilisis invidunt dolor ex. Sadipscing lorem duo amet et ipsum enim diam accumsan eirmod justo vero elitr. Eum et et nibh aliquyam justo ea erat.

Duo labore est voluptua illum aliquip. Kasd takimata et soluta dolor invidunt ut. Accumsan molestie et facilisi at eu dolore dignissim amet elitr no amet vero ea sed ipsum vel voluptua. Dolor amet exerci eirmod aliquyam est sit iusto dolores sit gubergren et invidunt luptatum luptatum accumsan eirmod. Erat et sit justo lorem odio amet tation accumsan erat sit erat voluptua et. Sit adipiscing dolor clita sit rebum molestie sanctus amet rebum justo eos feugiat sanctus ipsum sea diam vero odio. Lorem amet dolores dolor est iusto. Rebum lorem consequat et sadipscing diam sit takimata. Erat nostrud veniam consectetuer.

Sample Output H3

Amet est nonumy gubergren sanctus. Amet et clita est est sadipscing. Sit sit ipsum takimata. Ut vero dolores sadipscing at doming consequat. Elit ea erat clita clita diam et labore amet clita dolor lobortis volutpat no justo amet et. Molestie minim clita takimata option. Nisl ipsum dolor clita option nibh nihil dolore labore eos et erat sadipscing lorem elitr luptatum praesent facilisis. Nonumy ipsum dolores sed takimata. Ut enim facilisi takimata dolores dolor nonummy et est tincidunt gubergren tation stet et. Rebum justo nonumy quod velit diam takimata voluptua at. Ipsum et duo te.

Imperdiet eirmod eum veniam sea diam at dolores lorem dolore rebum in sadipscing dolore diam. Accusam eirmod at labore nonummy ad aliquam dolor sed. Diam accusam dignissim et sadipscing invidunt. Ut adipiscing ut in consetetur in vero. Eos invidunt stet diam ipsum nobis elitr dolor clita kasd sit invidunt clita iriure aliquyam consequat. Sit dolor tempor est et et duo eos dignissim no justo dolor et sed autem labore ut. Diam takimata et gubergren diam dolor vero. No dolor eirmod vel hendrerit commodo invidunt elitr et ut wisi et veniam diam. Lorem dolore eum in erat sit. Qui dolor at voluptua laoreet no dolore gubergren kasd iusto zzril lorem eos tempor labore voluptua molestie.

Sample Output H4

Takimata magna justo duo eirmod consetetur velit nonummy et. Feugiat ipsum diam magna voluptua imperdiet tempor lorem rebum aliquyam in. Et aliquyam elitr sanctus tation esse eros justo doming. Nonumy ad eirmod feugiat et. Vero dolore invidunt consequat stet dolore magna euismod dolor eos vel ullamcorper dolor dolor vero iusto sea. Aliquip eirmod at dolore dignissim sit sit stet dolore at sea erat tation erat iriure.

Feugiat consetetur et dolor et elit invidunt ipsum sit eirmod dolores. Consetetur ad dolores ullamcorper consetetur diam diam takimata elitr stet invidunt ut et amet nonumy duo. Erat justo aliquyam consetetur ipsum te diam tempor sadipscing erat justo. Erat et stet labore sed nonumy consetetur sanctus tempor volutpat. Dolores feugiat ullamcorper aliquam no invidunt dolor et eu justo tincidunt tempor eirmod eirmod diam diam. Takimata ut amet invidunt laoreet praesent vel elitr et sit vero clita clita veniam nonumy rebum et clita.

Sample Output H4

Sed aliquam sit sed esse consetetur facer dolor dolores no dolor ea. Eirmod amet dolore dolores clita stet ea accumsan vero. Ut diam accusam dolores euismod lorem et accusam at ea sea et voluptua et sadipscing ut euismod. Aliquyam vero rebum lorem gubergren duis eos clita takimata et est volutpat luptatum facilisi illum et et ea enim. Et eum ad iusto et enim diam eos diam vero at sea vel. Minim ea vero. Blandit eum id rebum dolor takimata amet et duis dolor soluta et nam erat ipsum.

Consequat dolore nostrud dolore quis ut sit illum lorem at consetetur autem at erat erat gubergren dignissim et vero. Dolor lorem ullamcorper aliquam magna. Esse possim est et. Ut vulputate voluptua erat. Consectetuer lorem elitr eirmod no consequat ad elit sanctus sadipscing sanctus eos velit adipiscing ut ipsum. Ea gubergren illum eos tempor sit. Et aliquyam nibh consetetur kasd dignissim nonumy commodo amet. Sed et est et sadipscing eos duo eos feugiat. At ea et sadipscing invidunt dolore eu et dolores stet labore te dolore. Lorem nihil duo eos voluptua invidunt amet laoreet accumsan.

Sample Output H3

Consectetuer sadipscing feugiat eos ut dolores amet. Congue rebum duo rebum stet sea eu sed vero amet dignissim sed duo diam in ea enim aliquip. Dolor elit eirmod sed sed enim dolore. Nonumy dolor enim aliquyam sit amet velit enim vel tempor et. Kasd diam no sed molestie est et vel elitr et stet. Sit dolor dolore id et. Diam eum nulla ut at takimata accumsan assum. Elitr consequat placerat odio diam magna eirmod. Accumsan dignissim imperdiet vulputate tempor sea nonumy erat sit eirmod vero aliquyam. Molestie amet takimata clita kasd et ut dolor suscipit ut volutpat labore magna dolor. Sit commodo nisl duis clita elitr vero vero rebum accusam vulputate eirmod mazim facilisis possim stet ea.

Takimata dolor dolore dolor erat kasd tempor invidunt eirmod sit voluptua lorem. Tincidunt lorem clita ut nisl. Dolores ut feugait accusam dolor diam lorem adipiscing clita justo ea dolore et vero. Id dignissim dolor sea ut. Dolor sanctus ut eos stet sit labore eirmod hendrerit ea est dolores. Voluptua magna gubergren eos est qui ipsum consequat vero commodo labore lorem. Erat sanctus aliquyam aliquyam sed sed erat kasd iusto eum lorem ipsum iriure eirmod justo et qui est sed. Dolor ipsum vulputate sanctus takimata erat labore odio tempor vel. Dolores lobortis magna placerat sed dolor.

Sample Output H4

Tempor et eros eirmod illum clita labore. Feugiat erat ipsum sanctus consequat in et iusto illum lorem sit sanctus sed. Clita eos tempor sea liber. Diam et in magna et lorem invidunt eos voluptua nibh. Lorem vero lorem facer elitr et delenit. Accumsan adipiscing tincidunt kasd gubergren duis nisl gubergren vulputate suscipit blandit sit voluptua takimata. Accusam duo takimata dolores ea ipsum euismod ullamcorper. Dolor labore ipsum praesent erat et.

Sed nobis magna magna erat sanctus magna amet ea esse autem voluptua sea clita sed sadipscing ipsum. Sed ipsum at zzril sadipscing lorem et. Elitr euismod kasd diam. Et sit soluta no consetetur voluptua et. Sed tempor dolores magna feugiat in ipsum dolor.

Sample Output H4

Iriure dolore eirmod. Dolor no ut sea dolore sea molestie rebum accumsan eirmod augue et augue sea tincidunt soluta ut sit kasd. Sanctus diam ut ut duis accusam at voluptua labore consectetuer ut sea dolores elitr ipsum sea duo invidunt. Dolores labore ea sit. Ea liber rebum liber ea est autem. Accusam sed duis no magna vero nulla dolore labore kasd erat elitr lorem liber. Et sanctus feugiat ut sed takimata minim no dolor sea doming amet. Sadipscing vulputate clita erat tempor sanctus tempor diam voluptua nulla vero consetetur dolor sit duo in. Iriure quod dolor et.

Duo nonumy et accusam eros et accusam sit at takimata aliquyam duo veniam amet. Sanctus magna enim dolor sit. Iriure diam et takimata erat ut gubergren stet. Lorem dolor sit gubergren dolore vero accusam invidunt et diam lorem facilisi eos nisl duo dolore aliquip sed tempor. Sit dolor justo veniam accumsan at ipsum et rebum. Dolor kasd eirmod eos cum eirmod duo lobortis eirmod diam ut clita et.