www.cloudformatter.com

cloudformatter format requests: 6,303,964    pages delivered: 14,344,525

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

Ipsum dolor et justo feugiat vel no at nulla ipsum et erat ipsum accumsan duis amet. Est dolore amet et labore dolore zzril sed labore. Ea eirmod erat dolor consetetur consetetur invidunt diam ipsum. Aliquyam aliquyam kasd tincidunt at sea magna vero tempor invidunt. Takimata voluptua amet sit kasd consetetur diam vel.

Dolore augue dolor kasd tempor facilisis diam tempor nisl praesent. Dolore wisi sanctus at. Sea sed eos ea no ipsum ad. Sea sed sea. Consequat dolores no stet no et magna ad rebum ut eirmod minim nulla diam. Erat eros nonumy nibh magna et eos tempor et gubergren aliquyam diam.

Sample Output H3

Takimata ipsum gubergren ipsum nulla iusto tempor mazim soluta consequat adipiscing vero sadipscing accumsan feugait sea at justo et. Ipsum ipsum stet ut sit nonumy gubergren. Gubergren lorem aliquyam. Tempor vel takimata enim at dolor eos. Ea at sea tincidunt lorem diam sed. Doming vero labore gubergren ut consetetur et vero diam sanctus sanctus no stet takimata. Option facilisi duo lorem et soluta amet aliquyam sed. Accusam dignissim eos sanctus et duo sanctus ex diam ipsum tempor justo justo diam dolore blandit nihil. Amet diam hendrerit lorem eros clita vero et rebum labore tempor nulla ex. Takimata delenit erat. Dolore dolore justo sadipscing dolores stet invidunt est autem.

Takimata at eos sanctus ipsum commodo eirmod eirmod dolor erat consetetur consequat sit. Dolores rebum aliquyam dolor consetetur sit in autem tempor sea voluptua est sanctus vero erat aliquip odio dolores dolor. Est dolor ipsum et kasd ad ex. Diam autem et at justo nonumy eirmod aliquam dolore ipsum dolor ut amet dolor. Et aliquyam et. Dolor no clita euismod voluptua amet justo lorem possim ea ut sed autem ut amet laoreet veniam sed. Dolor volutpat nostrud feugiat diam erat sit stet ea feugiat gubergren illum iriure veniam accusam at ut sed justo. Feugait erat diam dolor.

Sample Output H4

Clita sit nulla est eos vel eros erat eu quod eirmod aliquyam iriure sea kasd diam cum hendrerit erat. At vel sed justo consetetur diam placerat labore et duo nibh. Vero sea nam dolor cum gubergren sanctus. Odio et iriure diam nisl. Dolores clita consequat diam. Magna option ipsum. Eirmod quis sea elit gubergren ipsum quis aliquam zzril duo sea takimata elit justo delenit vel quod. Ipsum eum gubergren duo duo et aliquyam ipsum facilisis consequat invidunt dolor takimata et et duis ut.

Commodo amet clita erat sed aliquyam gubergren sit ipsum wisi minim. Ut diam invidunt invidunt. Labore ea voluptua elitr sed stet elitr velit dolor autem clita sed et ut. Sadipscing ut sit eirmod ut dolor magna nonumy vero hendrerit dolor veniam dolores ipsum lorem nonummy esse. Aliquip zzril elitr. Lorem ut et esse in gubergren amet ipsum lobortis congue dolore sit ullamcorper magna amet rebum amet. Dolor eros consequat consequat dolore et. Invidunt dolore dolores sed sed dolores vulputate ipsum stet est accusam eirmod vel sit vulputate sea. Ut elitr magna amet sed duo et vero stet.

Sample Output H4

Ut sadipscing volutpat tincidunt invidunt dolor cum eirmod vel facilisis euismod. Dolor dolor imperdiet diam ut no. Nulla dolore duo amet sit sed invidunt at nulla ex luptatum et et lorem eos duo dolor suscipit. Ipsum duo veniam dolores at lorem feugiat amet labore dolor duis nostrud dolor veniam no. Labore et ipsum feugiat elit lorem et gubergren et et quis ullamcorper tincidunt eos aliquyam sea accusam sed takimata. Dolore nostrud sadipscing sit elitr nonummy aliquip. Sadipscing consetetur vel clita takimata amet nonumy ut.

Luptatum lorem sit consequat feugiat no lobortis. Esse dolore et takimata esse accumsan. Labore eos diam diam. Sea lorem volutpat et dolores diam dolore diam duo at gubergren amet ipsum et suscipit. Sadipscing eleifend magna labore takimata ut. Est et clita tincidunt amet dolor cum sea erat erat et amet augue lobortis sed ipsum. Diam duo sit takimata clita sed et suscipit ea et. Sed gubergren lorem.

Sample Output H3

Sea vero ut ut. Invidunt diam et dolor duis illum dolore et amet et magna. Vel takimata eirmod ut et clita esse. Justo aliquyam tempor accumsan. Sea ut sed ea accusam in dolor amet labore diam in dolor tincidunt quis kasd sed ipsum et invidunt.

Et sit takimata aliquyam est labore facilisis blandit nisl takimata erat. Eos et clita accusam et ut euismod liber invidunt. Et kasd consequat ipsum elit sit sanctus dolor sadipscing in sed enim. Eirmod lorem ut labore diam magna eu option labore eos consetetur elitr eirmod amet. Ipsum nulla et sed eirmod vero justo et in facilisi consectetuer dolor sed sanctus consequat sed. Dolores duo eos consectetuer dolores vero.

Sample Output H4

Aliquip kasd dolore no vero vulputate iriure amet. Consetetur duis kasd autem diam sit esse sed no. Ut commodo lorem sadipscing illum amet. Sea esse sadipscing ut duo iusto ipsum dolore ut augue tempor eleifend dolores et. Sanctus sed clita consequat dolores ipsum no vel nisl takimata at ipsum hendrerit diam luptatum velit dolore ea. Et eos dolor justo voluptua diam stet diam at vero invidunt erat sadipscing gubergren molestie. Augue dolore ipsum sed at lorem et accumsan sit sadipscing ullamcorper ut amet dolor sed sanctus esse amet. Et ex eos ut eum lorem voluptua. At dolor sed aliquip tempor dolor ut ipsum nonumy et. Elitr et praesent erat.

Lorem lorem et eos sit sit. In diam accusam takimata et stet tempor takimata amet molestie et. Labore ullamcorper eos diam diam duis et sanctus congue nulla dolor. Accumsan lorem ut ea erat sadipscing kasd aliquyam et. Takimata kasd amet dolore sit elitr sit congue. Dolore ut nam lobortis.

Sample Output H4

Enim et takimata vero. Rebum amet feugait lorem dolore sed iriure accusam nonumy diam eos invidunt ea justo duo stet sea. Et veniam gubergren sit et duo et justo laoreet sadipscing assum. Aliquip lorem takimata et vel takimata aliquam imperdiet erat tempor zzril at accumsan ipsum te et stet nonumy at. Sanctus at ut eros erat stet labore sanctus velit rebum. Dolor sit ut est justo rebum tempor elit gubergren. Clita dignissim invidunt amet vel. Rebum no enim eu vulputate dolor takimata ipsum elit duo ea ipsum accusam eos facilisis. Et ipsum stet sea nonumy feugiat. Lorem ut tincidunt enim ipsum sadipscing laoreet.

Feugiat aliquam lorem sed sanctus dolore dolore eleifend amet tempor et. Rebum et diam tempor ea. Suscipit elit invidunt diam accusam et dolor enim diam clita sanctus dolore ipsum sea dolores nisl consetetur labore. Dolore praesent labore lorem feugiat diam ipsum takimata nonumy diam volutpat eum. Et ipsum dolores ut vulputate commodo dolores labore rebum te justo justo. No dolore praesent ut facilisis eirmod in blandit et takimata et no invidunt aliquyam justo voluptua.

More Sample Output H2

Clita dolores erat dolore ipsum diam eirmod et in et et consectetuer. Sed ut eirmod esse et invidunt est feugiat diam duo no mazim aliquyam augue est sit dolore. Sit sit ut. Duo ipsum dolore veniam vero et kasd aliquyam gubergren dolor et dolore velit erat. At congue consequat sea. Ipsum dolores et ipsum iusto. Nonummy sed diam et ipsum amet takimata no dolores diam tincidunt sed nihil. Et velit takimata facilisis diam eu nonumy vero et sit tempor quis consetetur et gubergren justo. Sit takimata amet tation facilisis nonumy amet commodo luptatum voluptua lorem nibh sit sit.

Sanctus suscipit clita nostrud duis voluptua vero nam et sit kasd commodo clita est zzril amet. Iriure eu et dolore. At consequat stet diam facilisis takimata no dolore qui nonumy. Diam nonumy commodo. Gubergren luptatum justo labore in gubergren duis erat zzril tempor eros vel amet vel sit diam sed. Magna et labore. Vel et adipiscing ipsum illum minim ea aliquam at. Ipsum justo tempor aliquyam kasd dolore in. Sed praesent kasd sed duo clita gubergren.

Sample Output H3

Nonumy molestie clita takimata duo vel eos ea consequat labore nulla. Magna rebum sit kasd no dolor aliquyam no et aliquyam sadipscing suscipit aliquip eirmod et rebum feugait consequat. Accusam molestie dolor at vel vel gubergren. Sanctus dolore rebum accumsan ipsum sea iusto ipsum lobortis. Erat gubergren sit eu nostrud commodo gubergren consetetur sanctus at magna aliquyam duo nonumy vero aliquyam. Tation wisi eirmod eos ea et. Eum et takimata eos augue vel. Sanctus erat consetetur nulla. Eirmod kasd vero enim et ipsum diam lorem dolores. Iusto quod sit dolores labore clita commodo kasd nonumy rebum eum sit.

Sed est lorem sadipscing imperdiet at wisi vero ullamcorper aliquip no vel amet. Eos feugiat ut sed amet justo dolore adipiscing et dolore delenit et eros ea nonumy ea diam et at. Sed at laoreet sed takimata sadipscing sanctus dolor labore nonummy. Qui amet consequat gubergren eu tincidunt dolore. Dolores no gubergren duo esse eum nulla ut ex tempor te veniam.

Sample Output H4

Labore et duis sanctus te et sea sit esse eum no ipsum consetetur lorem aliquyam est no no. Dolor takimata doming amet nonumy labore invidunt kasd voluptua tempor kasd at dolores invidunt minim. Molestie wisi laoreet rebum eum clita lorem mazim dolore vero vel commodo diam tempor augue kasd ea. Odio ut nam consetetur et et euismod gubergren dolore at vero et. Dolores aliquip augue voluptua no voluptua autem facilisis facilisi praesent lorem duo lorem. Dolor est takimata sea eleifend nonumy at lorem elitr possim clita dolore ex sea consectetuer.

Duo gubergren aliquip qui sit sit kasd justo ut vero. Ipsum duo cum elitr stet velit. Dolore sea consectetuer mazim consectetuer rebum sit suscipit at rebum diam est tempor consetetur kasd invidunt cum elitr. Sed dolor sea dolor. Diam et et dolores vero ut clita duo vero dolores kasd et erat at sit amet labore. Labore sit clita illum molestie et accusam dolore sit illum gubergren. Est eu erat nobis ut et ipsum wisi duis diam quis sadipscing sed consequat et nonumy sed euismod. Ut stet in ut sit eos et stet dolore et sadipscing labore dolor takimata volutpat dolore rebum. Dolor sed aliquyam dolor amet eros et sit ipsum lorem dolor sit dolore te at et feugait sed. Clita sed diam diam lorem dolores et facilisi est sed lorem voluptua invidunt velit sit consetetur duo amet.

Sample Output H4

Et takimata amet lorem qui kasd magna. Aliquip nostrud clita delenit iriure dolores duo ea duo est eros odio clita. Amet justo ipsum lorem duis aliquyam invidunt ad takimata ut stet commodo lorem magna sed vulputate esse eros ut. Sed gubergren et. Et takimata et magna voluptua sit et gubergren. Sit sanctus iriure est. Duis magna clita labore nisl magna dolor consetetur ea ad tempor erat sit lorem tempor. Sed blandit vero sadipscing et.

Nonumy facer kasd wisi. Nihil ipsum amet ex labore duo kasd elit nulla diam lorem veniam est nonumy lobortis sea. Dolor facilisis et placerat. Justo id dolore stet nonumy gubergren duis eos rebum gubergren est eirmod ea dolore justo est erat dolores. Dolor elitr sanctus rebum. Tempor nonummy et lorem amet vel sit sit euismod.

Sample Output H3

Amet sed et sed. Accusam tation sed sadipscing ullamcorper est iriure at diam tation dolor clita adipiscing ipsum et eum. Diam at erat at augue clita duo diam sea. Dolore eos dolor facilisis eos nisl aliquam praesent blandit. Et at et ut laoreet no eirmod in eirmod erat sed dolore tempor diam. Magna et ullamcorper nibh dolore sadipscing molestie congue ut nostrud sadipscing facilisi magna quis est stet est lorem. Suscipit ea ut sit tempor est vero clita ipsum congue stet diam. Clita eirmod voluptua sea dolores elitr sea labore suscipit doming magna quod amet qui takimata diam et.

Takimata wisi zzril ut assum invidunt justo et molestie ipsum. Lorem accusam et magna doming exerci sit. Amet aliquyam dolor ut lorem eirmod gubergren amet laoreet ut dolores labore nisl. Consetetur dolore veniam ea magna sanctus accusam feugiat et est invidunt eros doming eu vero soluta. Magna ut consectetuer dolore at sed et clita et dolor ea dolor clita tempor rebum eos duo consetetur tempor. Magna adipiscing kasd consetetur rebum consetetur voluptua minim clita tincidunt amet sit. Kasd tempor no. Tincidunt dolor facilisi. Lorem clita nostrud dolor labore wisi adipiscing et molestie hendrerit invidunt diam rebum elitr.

Sample Output H4

Sanctus sea dolore. Erat lorem kasd clita eos diam exerci erat sanctus dolor voluptua at rebum. Sed justo esse hendrerit no feugait diam no vero amet ea no est duo velit et ea. Odio elitr diam lorem illum labore aliquyam sanctus gubergren dolores et velit commodo gubergren eos. Ea lorem et. Consetetur facer eos et voluptua gubergren ipsum rebum eos velit dolore nonumy invidunt est ex et amet vero consectetuer. Vel takimata amet gubergren elitr takimata gubergren eirmod invidunt labore lorem diam augue.

Ea invidunt dolor sed sadipscing invidunt et illum assum ut sed ea clita sed dolor velit laoreet vel. Labore odio sed. Dolore dolor consetetur gubergren erat eirmod ipsum at vel ut facilisis in invidunt ipsum et voluptua ut. Aliquam kasd at ea sea suscipit stet et no. Est facilisis sit nonumy at et lorem at ea voluptua tempor elit ipsum. Ipsum quis labore consequat ea at erat sanctus ea dolor et rebum labore. Consetetur lobortis dolor dolor sea diam et. Ut sea rebum ea consetetur. Diam ut dolor sadipscing no nisl eum erat accusam sed ut eirmod dolores amet. Ipsum takimata iriure wisi lorem magna nibh facilisis sadipscing iusto clita volutpat in facilisis feugait at sit.

Sample Output H4

Sed eos sadipscing diam lorem duo accusam ea invidunt accusam sea accusam eos eos illum invidunt dolor wisi rebum. Eos ut clita sit possim dolor ut et blandit at justo luptatum. Elitr accusam at sanctus et gubergren ea zzril dolores at sea. Nobis velit amet. Id facilisi nisl sanctus est volutpat consetetur. Et et takimata et quis. Dolor sit id ad magna invidunt kasd erat cum sadipscing commodo gubergren eos clita est molestie. Elitr feugait nam. Et erat nonumy dignissim at nostrud dolore magna dolor dolor et dolor ut lorem takimata diam nonumy hendrerit gubergren.

Eirmod ipsum sea sit consequat ea sanctus takimata dolore ea elitr sea takimata. Possim amet sadipscing vero facilisi aliquyam ipsum tation diam ea sea eirmod. Dolor amet lorem illum amet rebum tincidunt et et accusam tincidunt. Clita et est elit esse. Consetetur sed ipsum ipsum diam amet. Dignissim sit gubergren duis takimata veniam. Sed accusam no magna consequat option elitr sed commodo ipsum nam erat tempor magna kasd at sadipscing. Ea in rebum consetetur ea aliquyam. Est et erat et.