www.cloudformatter.com

cloudformatter format requests: 6,322,870    pages delivered: 14,376,937

PDF Properties

xportability LLC

PDF Properties

http://www.cloudformatter.com

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).

Options

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.

Note:

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;">
    <metainfo>
        <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>
    </metainfo>
    <pdfpreferences>
        <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"
            value="http://www.cloudformatter.com/Resources/Images/registration.svg"></pref>
        <pref name="printer-mark"
            value="http://www.cloudformatter.com/Resources/Images/colorbar.svg"></pref>
    </pdfpreferences>
</pdfproperties>

Sample Output H2

Et rebum hendrerit takimata vero kasd delenit sadipscing feugait. Consequat vel tation suscipit. No ut dolore gubergren consetetur magna aliquam tempor feugiat aliquyam consetetur et ut. Sed sadipscing ea duo et diam duo dolor amet invidunt sit diam accusam illum commodo sadipscing nulla ut. Et justo erat et nostrud magna sanctus erat diam takimata sed rebum augue at erat magna. Justo erat velit ipsum soluta duo labore adipiscing consequat lorem delenit ut esse esse duis ut accusam dolores. Duis gubergren est. Ea qui ut ipsum. Eos elit dolore dolore cum. At sit ex no nonumy justo consetetur labore diam voluptua at sit.

Ipsum sed ut diam labore lorem dolore dolor sed magna sit voluptua adipiscing stet diam. Hendrerit eirmod amet lorem facilisis augue. Clita sit diam ut at erat kasd feugait dolores diam sit hendrerit iriure takimata. Clita est voluptua eum kasd aliquyam consetetur minim voluptua magna sed. Suscipit eirmod et eos exerci dolor dolore zzril sadipscing eos dolor sanctus duo erat rebum. Nam dolor nonumy dolore dolor amet gubergren clita et. Sit accusam amet dolor lorem magna ex ipsum vero sanctus wisi magna voluptua sea ut no sit aliquyam. Tempor erat dolore et diam sanctus takimata te at volutpat quis nulla takimata. Sed ipsum no erat vero justo est magna magna ut hendrerit dolor et accusam eos ipsum ipsum at.

Sample Output H3

Consequat eirmod ut lobortis vero duis. Stet sed et rebum sed sed magna ex. Feugait sed facilisis tempor accusam consectetuer erat nibh vero eros duis diam rebum diam rebum. Tempor exerci ipsum ut diam lorem. Dolor eos sed sed clita nulla rebum consetetur gubergren diam nonumy et vero clita ipsum eu ut eros aliquyam. Lorem sit gubergren labore ut sanctus duo diam eu dolores sit labore est. Aliquyam autem ipsum feugait justo dolores consetetur magna possim dolor sed. Vero autem qui erat rebum voluptua dolor iriure.

Rebum sea tation sanctus sed eos clita sadipscing dolor sanctus volutpat. Takimata suscipit magna gubergren takimata clita tempor dolor et sea at aliquyam ex lorem et. Iusto takimata invidunt dolore enim autem ut takimata. Stet id stet justo dolor amet ut sanctus sanctus aliquyam dolore dolor ipsum qui labore est. Vero velit congue tincidunt ut adipiscing dolor elitr velit. Justo invidunt illum nibh.

Sample Output H4

Nonumy at vel. Vel erat exerci sadipscing suscipit. Invidunt eos sanctus wisi possim dolor diam amet vero amet vero nonummy nonumy. Aliquam amet facilisi et et. Hendrerit stet sit eos ea sed gubergren lobortis sed erat lorem est justo erat eirmod sed consequat et sanctus. No facer dolor.

Facilisis eirmod in amet tempor voluptua dolor sadipscing velit sanctus iusto doming dolore. Nihil duo facer lorem aliquyam. Et nostrud kasd doming lorem no consequat illum. Kasd lorem dolore suscipit et et lorem euismod est lorem et augue kasd ipsum eos te. Justo dolor no lorem lorem consequat sanctus consetetur sadipscing accusam sed magna dolor sanctus aliquam.

Sample Output H4

Euismod takimata diam. Sed elit consetetur sanctus invidunt amet vero et quis clita iusto amet eos nonumy ut sed sit elitr. Est sit diam amet voluptua amet sed at et clita dolores dignissim et et. Duis invidunt et accusam sit sit praesent tempor dolor gubergren eos ea accusam justo amet gubergren. Clita feugait et sed.

Et et sanctus at ut lorem quod at takimata. Dolor amet gubergren facilisis erat sed elit voluptua duo no sed erat erat no dolore odio sit vero duo. Kasd dolore ut sit et lorem nonumy eros autem nonumy sea. Et ipsum takimata sed nobis ea delenit erat stet. Gubergren ipsum id nulla tempor ut. Dolore esse aliquam sanctus et nonumy rebum gubergren ut gubergren takimata. Justo tation erat. Sanctus nisl duis sit hendrerit accusam invidunt sadipscing diam tempor clita laoreet.

Sample Output H3

Nisl dolores clita nonumy dolor aliquam sea dolore amet no consetetur lorem invidunt et vero et. Sea dolore elitr eirmod vero sanctus et aliquyam sed amet voluptua dolor lobortis. Kasd assum invidunt sanctus elitr sit zzril et elitr ipsum dolore nam placerat sea sanctus labore. Justo et lorem vel dolor sed lorem. Facilisis diam sadipscing sea vero ipsum kasd gubergren ea luptatum. Iriure justo dolore.

Diam nonumy dolor kasd invidunt ea. Vero sadipscing nisl at amet et iriure. Feugait tempor sit duis vulputate. Eu justo amet dolor dolor laoreet in sea diam sadipscing molestie no tempor ea nobis. Tation sadipscing aliquyam est erat dolore illum diam lorem amet elitr sit takimata quod eos lorem.

Sample Output H4

Lorem accusam sadipscing voluptua diam at ut praesent ipsum ipsum tempor. Odio sed diam at. Justo dolore consectetuer esse aliquip ipsum kasd vel eu gubergren. Wisi veniam invidunt sit clita feugiat. Elit at amet tempor lorem accusam et. Stet est rebum et ea nonummy dolore ipsum ipsum laoreet rebum sit nonumy dolor dolore takimata gubergren. Sea et takimata sed tempor. Nonumy dolore takimata lorem no kasd voluptua vero et eos dolore diam odio stet dolor ipsum molestie ad kasd.

Amet magna dolor hendrerit. Diam ea illum illum sanctus no duo diam voluptua erat vel. Nonumy nisl sit eirmod erat amet et sadipscing erat ea eirmod sanctus rebum dolore sit takimata voluptua amet ea. Voluptua et est amet no eirmod luptatum eos et nulla eirmod eos erat liber nulla in ut te et. Eos delenit eirmod nibh voluptua voluptua diam et. Facilisis ea magna dolor odio magna lorem aliquip sit sea et dolor sit et.

Sample Output H4

Ea liber sea dolore tempor est lorem erat aliquyam sed nostrud dolore vel justo tempor et. Autem diam feugiat vero dolor stet magna laoreet sadipscing aliquip dolor. Ipsum diam vero vel ut kasd et dolore duo diam magna esse. Labore veniam clita eum sea. Accusam facilisi sit magna consetetur consetetur lorem eirmod sea. Feugait consetetur et. Dolor te stet invidunt sed sed takimata dolores et. Justo laoreet magna lorem veniam et et aliquyam invidunt. Feugiat praesent ea at sed. Nihil mazim stet nisl no et ut tempor lorem takimata soluta voluptua. Et consetetur lorem lorem dolor dolor.

Aliquam diam tation takimata veniam sea iusto dolore tempor sadipscing nisl accusam amet stet ea est duo at dolore. Nulla voluptua lorem option consetetur ipsum et in diam illum ex invidunt et elitr erat. Et dolor minim vero vel est kasd ea. Accumsan amet odio clita. Dolores dolore lorem accusam dignissim. Vero clita stet sit nonumy aliquyam est tincidunt dolore dolores amet ipsum labore ut qui. Clita erat lobortis laoreet kasd iusto ex diam qui volutpat. Diam dolor lorem vero et accusam et est ut ut dolores ea enim amet ut. Nihil sed nonummy tempor sadipscing magna.

More Sample Output H2

Ut illum lorem dolor dolor nulla. Ut accusam consectetuer diam sed. Elitr et dolore blandit stet eu. Sit sadipscing nonumy erat vero justo sanctus sea vero et tempor dolor invidunt takimata. Accumsan iusto autem lorem magna diam. Sed magna et sanctus magna ut lobortis duis molestie stet ut eos.

Dolor sit dolore et et amet ex. Option no sed et eos lorem sadipscing justo feugait vel clita sanctus ea no rebum stet tempor duo invidunt. Tincidunt takimata stet clita lorem sadipscing sit amet dolor ut feugiat tempor est. Sit feugiat clita. Consectetuer exerci accusam enim nonumy et quis enim kasd consequat illum amet amet ipsum stet amet.

Sample Output H3

Dolores erat duis magna magna ipsum duo lorem et ex commodo sit et lobortis voluptua et. Eum ipsum kasd ut. Et nulla magna dolores stet eirmod quis euismod rebum diam consequat at kasd elitr vulputate ut vero. Consequat ea dolor sanctus clita ea takimata diam nisl takimata dolores dolore sea accusam. Voluptua eros nonumy amet rebum ut vel clita quis invidunt eos sed sit consetetur ex lorem ipsum justo. Erat amet justo augue dolore ea gubergren. Feugiat lorem exerci erat. Et dolores ut duis lorem blandit ad vero ipsum sanctus eos nobis vulputate. At et lorem lorem eu gubergren sit kasd elitr aliquam stet kasd.

Dolore dolore takimata est sit consequat lorem dolores hendrerit est est consectetuer tincidunt nam diam sadipscing et. Accusam amet nisl ipsum at amet at iriure vero justo sea augue consequat tempor duo no at et luptatum. Accusam lorem takimata diam elitr ipsum ipsum dolor in diam cum lorem nam sit in diam wisi amet est. No ex kasd augue nulla aliquyam invidunt dolores dolor ea nulla vero sit ipsum facilisi dolores iusto stet. Facilisis dolor diam ipsum ut et vero sed consequat et consetetur dolore magna ea dolor esse nonumy sadipscing in. Clita nulla magna veniam duis consetetur et ipsum. Sed laoreet ut accusam et gubergren eos dolore consequat exerci dolor. Nonumy amet ut vero exerci. Elitr lorem sadipscing dolores et stet. Sit et lorem eos no diam lobortis vulputate.

Sample Output H4

Consetetur eros justo sed ut erat accusam gubergren option dolore ipsum eos amet magna. Lorem stet eirmod ipsum dolores gubergren clita nonumy lobortis. Tempor sit lorem nonumy molestie clita no vero nulla in eos nonumy dolores duo lorem accusam nibh. Invidunt et sed stet vero laoreet est autem ut elitr consequat dolore dolore est duis eleifend aliquyam. Dolores stet diam et velit lorem. In sadipscing rebum sit et minim nonumy labore consequat lorem nonumy nonumy takimata. Dolor blandit sed sit sit vero id in.

Sit nam accumsan et nonumy dolores justo amet erat et nobis dolores. Amet sit ipsum est ipsum ad dolor et sit diam amet accusam cum. Accusam tation voluptua sadipscing sit et laoreet kasd eu eirmod. Veniam lorem labore iriure voluptua. Rebum aliquyam dolor diam qui dolor ex imperdiet magna in possim nonumy dolores vero dolor ut aliquyam feugiat.

Sample Output H4

Diam odio sit duo et augue gubergren eos ipsum consetetur duo diam tempor dolores tempor sed diam gubergren dolor. Diam kasd luptatum et dolore facilisi amet consequat ut consetetur. Ipsum at eos labore voluptua erat eu esse accusam veniam est consetetur. Voluptua stet ipsum sit tempor. Rebum nonumy erat sit feugiat sea est sanctus ut rebum vel diam no sea et magna. Stet et euismod kasd. Erat magna consetetur ut nonumy amet. Assum suscipit lorem sit sit option labore vero at feugait.

Amet quod vero takimata sit imperdiet justo sit consetetur veniam nonumy labore nulla. Ea blandit ipsum sanctus imperdiet qui gubergren nulla et sed consequat magna illum no consequat takimata vero et takimata. Eum invidunt augue iriure diam ullamcorper et dolor molestie diam dolores ea et et. Amet voluptua dolor rebum. Sed et diam veniam vero ea et gubergren ipsum eirmod. Amet kasd ut placerat amet sanctus. Dolor diam sit amet diam aliquyam kasd enim diam. Clita est aliquyam vel no invidunt aliquyam dolore at et volutpat at diam gubergren rebum rebum sea. Eos invidunt velit enim amet magna est eos sanctus. Amet et qui et at ea.

Sample Output H3

Takimata invidunt no at. Et at eos sea dolore enim at ut dolor erat stet nonumy placerat amet et. Eu esse invidunt magna dolor ut ipsum dolor elitr amet at clita magna sanctus tempor sea ea zzril. Diam accusam clita dolor invidunt congue voluptua. Sadipscing at dolor soluta possim rebum et dolor ut vero sed. Clita eirmod iriure ea. Sadipscing duis consequat diam sed accusam aliquyam. Laoreet sadipscing et dolores stet. Ad nibh gubergren sadipscing accusam erat et invidunt ipsum sit diam diam labore invidunt clita voluptua sit eros. Zzril ipsum invidunt kasd diam ipsum et dolores eros stet.

Aliquyam et clita erat amet justo sed magna ut assum at delenit eum kasd esse eirmod consetetur aliquyam. Et dolor in ipsum ea nibh et et facer sit clita dolor eos kasd. Ipsum ipsum et nonumy invidunt eos eos tempor elitr. Vulputate sed delenit lorem et et et nonummy nihil rebum rebum elitr tincidunt dolor vel erat tempor takimata eirmod. Ipsum et tempor lorem delenit labore ea est nostrud diam ipsum gubergren imperdiet quis. Justo dignissim dolores euismod ea nonumy gubergren eum sit enim nonumy amet ut labore sea. Adipiscing lorem dolore erat dolor lorem kasd dolor magna sit dolores justo accusam clita ipsum ea rebum suscipit dolor.

Sample Output H4

Dolore lorem eirmod stet vero sed suscipit eum facilisi et luptatum suscipit sed cum. Stet elit dolores ut no sit. Invidunt accusam hendrerit eos ut kasd vero dolore illum at consectetuer praesent duo sed. Tincidunt ad sit ipsum elitr in ullamcorper. Consectetuer aliquyam nibh at dolor ipsum takimata sed molestie ipsum ullamcorper duo esse diam dolor sanctus. Qui gubergren sed in et takimata consectetuer et tempor takimata invidunt eirmod diam at. Eros invidunt erat exerci diam invidunt in et.

Lorem duis magna kasd sadipscing lorem. Feugait in in kasd. Vel feugait eos sed iriure et elitr odio. Consetetur diam justo. Amet duo voluptua sed amet aliquyam nulla dolore sadipscing vero nulla aliquyam et sadipscing sea diam vel. Blandit est elitr et.

Sample Output H4

Ipsum ad et te et sea est molestie dolore. Sadipscing ipsum lorem feugiat sit. Eirmod et aliquip consectetuer lorem dolore qui et consequat ex kasd consetetur no dolore. Tincidunt minim ullamcorper kasd dolore eirmod dolores diam ut justo et vero lorem sit gubergren esse et lorem. Luptatum vulputate elitr dolores justo et sadipscing justo diam possim ea kasd duis. Duo vulputate duo gubergren accusam ipsum laoreet accusam sadipscing kasd dolore sed no zzril et eos. Amet eos dolores ea feugiat kasd augue et amet eirmod dignissim vulputate ut lorem no diam consectetuer invidunt adipiscing.

Amet at ipsum iriure magna voluptua ut amet diam dolor dolor aliquam tincidunt et ullamcorper kasd. No accusam in sit no no duo dolore iusto minim vero dolor sit. Ullamcorper nulla sit ea dolor stet est dolor accusam duis stet sanctus te. Ipsum dolore wisi magna zzril ut. Gubergren eos justo tempor dolores. Rebum no vel amet consetetur consetetur et vero elitr tincidunt velit nulla dolor sadipscing sanctus ea at stet esse.