www.cloudformatter.com

cloudformatter format requests: 6,326,693    pages delivered: 14,385,749

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

Lorem sed dolores accusam exerci invidunt mazim et ex rebum vero ut sea. Sanctus ad est elitr magna imperdiet consetetur nulla facilisis diam amet clita eos elitr takimata. Tempor takimata et hendrerit iriure eirmod lorem dolor accusam amet labore ut diam lorem aliquam. In ut aliquyam commodo eu et diam. Sed aliquyam vel at voluptua labore eu dolores no invidunt et dolores minim.

Duo sit adipiscing dolore magna sit voluptua kasd lorem dolor magna. Est dolor et. Voluptua dolores rebum clita amet tincidunt dignissim et liber. Lorem te dolore at nam tempor amet delenit et duo dolor aliquam no magna sit invidunt. Sed amet sed nulla dolore labore qui amet labore ipsum voluptua et consetetur feugiat et ea erat. Ex option odio erat sadipscing vero vero dolore sed option consequat takimata eirmod. Ipsum diam sadipscing et et sea ipsum te kasd amet.

Sample Output H3

Suscipit in diam cum ut tempor aliquyam ex et ut dolor et dolor ipsum lorem lorem sadipscing et. Et lorem illum in et sanctus. Ex lorem no nonumy dolor tation. Lorem consequat nonummy sanctus takimata quis dolores sed veniam. Tincidunt sadipscing kasd ea sadipscing est tempor duo sed gubergren magna diam at tempor aliquam magna. Amet dolor no dolore dolores molestie eros magna dolor at quod dignissim at facilisis ipsum justo consetetur rebum. Clita sed veniam ea iusto in clita diam te duis sea id. Voluptua facilisi sit sit et dolor eros sed cum eirmod eos vel duis augue molestie erat. Accusam autem eos consetetur ut doming.

Tempor diam est sed et luptatum no vel at diam dolores clita dolor eirmod consequat nonumy eirmod. Dolor eirmod dolores amet hendrerit dolor lorem no at. Accusam vero elitr clita sadipscing est. Ipsum ut clita lorem in no. Tempor et enim consetetur justo iusto ipsum labore. Facilisis est et aliquyam elitr et ut aliquam sed eirmod lobortis consetetur sit invidunt sanctus erat te ex stet. No diam sit sed amet takimata facilisi facilisis aliquyam diam. Kasd tempor duo adipiscing takimata. Elitr sed possim erat at erat ut magna et et dolores.

Sample Output H4

Diam sed invidunt sit minim invidunt. Dolor stet labore ullamcorper clita et amet dolores nulla sea vel amet lorem diam duo feugait elitr odio. In volutpat diam at eirmod est dolor liber vel duis tation ut labore eirmod ipsum sit stet. Erat duo et magna. Aliquyam et sanctus ea sed autem sea ad diam aliquyam wisi in liber.

Dolor et gubergren dignissim duo esse et. Kasd eirmod amet voluptua sanctus ea stet cum sit clita dolore sadipscing in ea dolore at eos ut et. Sanctus takimata dolore gubergren dolore. Gubergren gubergren sea stet clita sit ipsum sit clita. Et et ipsum rebum et amet ipsum. Eos no dolor dolore aliquyam ea dolor. Aliquip labore et eirmod delenit augue et ex quod ipsum iriure est. Magna amet ad esse. Hendrerit sit volutpat. Molestie consetetur nonummy.

Sample Output H4

Et vero erat aliquyam suscipit. Volutpat duo delenit aliquyam sea dolor ipsum ea accusam hendrerit aliquyam illum gubergren dolor sadipscing. Ut kasd labore nibh dolor in elit illum. Gubergren accusam justo. Et enim et invidunt eirmod sit eum nulla labore sit.

Aliquip eirmod ea lobortis sed duo sit blandit sed voluptua vel delenit. Ipsum velit eirmod aliquyam sea dolor voluptua molestie stet ea vero at vel est ea consequat dolor. Zzril dolor justo sed eu dolore ipsum nostrud quis et clita tincidunt vel. No lorem lorem exerci. Duis feugait ipsum sanctus eos.

Sample Output H3

Euismod erat veniam stet duis et. In accusam sit. Elitr nonumy takimata praesent iriure sanctus esse ea takimata praesent sit dolores no sit ipsum velit et ullamcorper ad. Amet est iriure tincidunt invidunt dolor consequat gubergren rebum congue takimata. Diam diam erat dolores dolor. Stet veniam aliquyam no.

Eu eum accusam clita clita ex tincidunt et et amet justo et enim sit zzril autem sea at. Sea dolore tempor volutpat duo et est esse dolore dolore sanctus takimata et invidunt sed sit vero diam invidunt. Sed at diam suscipit dolor accusam elitr elit wisi sit et soluta stet no ullamcorper nonumy. Kasd ipsum eos at clita ipsum nonumy et tincidunt volutpat labore nonumy est elitr ut. Consetetur dolore dolore accusam luptatum nonumy sit amet odio justo. Sed odio sadipscing dolore sit sed tempor no vero rebum sanctus invidunt eos aliquam labore lorem. Nulla doming ipsum voluptua sed clita et dolor sed praesent nibh voluptua. Eos dignissim elitr dolore.

Sample Output H4

Molestie sanctus ullamcorper dolor duo clita vel nonummy accusam. Dolore clita clita ut mazim hendrerit gubergren facer amet sit te. Et lorem placerat et sea sit diam tempor sadipscing diam ullamcorper tincidunt. Ut dolor nihil erat stet dolor ut dolores. Aliquyam eos rebum.

Magna id et esse no et diam invidunt ipsum at eirmod lorem magna. Dolores nam ullamcorper dolor vel magna voluptua laoreet nulla te. Ipsum sea nonumy erat. Consetetur dolore sanctus duo te quis placerat velit ea suscipit exerci nibh lorem eos sed sadipscing. Ea dolore ipsum nulla erat. Velit takimata accumsan rebum gubergren sanctus sanctus kasd eirmod nulla clita magna est volutpat. Sadipscing at ea accusam amet clita diam ea laoreet exerci illum lobortis eirmod elitr.

Sample Output H4

Ut facilisi ipsum et elit et imperdiet. Facilisis no duis accumsan tempor tempor. Ut et assum eos. Nonumy aliquam elitr dolor dolores sed ipsum vero voluptua et justo justo aliquyam ipsum. Hendrerit ipsum praesent et et ipsum sit no ut et delenit diam possim.

Ipsum volutpat et dolor aliquyam. Feugiat dignissim ea assum et. Iusto sit diam elitr amet nonumy sanctus gubergren et no molestie labore sadipscing eirmod dolor sanctus duo odio. Sed sea diam ea et amet nostrud tincidunt magna. Ex invidunt dolor dolor. Sed stet amet dolor diam eirmod autem eirmod et nonumy eum aliquip iriure duo luptatum vero blandit. Est sed dolor elit.

More Sample Output H2

Elitr eu erat est diam sit takimata nostrud ipsum. Vero labore kasd amet. Erat nulla quod kasd erat accumsan magna et nostrud lorem ipsum autem takimata elitr et. Ipsum ut at lorem. Sea veniam sadipscing sed et voluptua accusam mazim nulla et. At facilisis te dolore dolor et eu ea clita imperdiet accusam sit tempor cum duo dolores voluptua accusam at. Lobortis sit dolore eirmod justo duis duis dolor dolor sadipscing eum sit nam nonumy. Vero feugiat euismod voluptua vel lorem kasd diam gubergren stet kasd tincidunt. Elit est nibh dolore erat justo nonummy amet labore facilisi rebum nonumy eos lobortis nonummy amet amet. Dolor dolor sed lorem tempor. Amet magna kasd consetetur hendrerit amet amet sea at.

Ipsum vel voluptua accusam assum illum aliquyam sadipscing at clita. Velit enim veniam vel no sit amet sed dolor elitr aliquam kasd laoreet ipsum takimata et nisl. Iusto est stet euismod sanctus dolores nonumy at lorem sed et dolor clita elit takimata feugait. Minim commodo elitr vero duo nibh dolor ea tempor at lorem duo et nonummy ipsum dolore. Dolore vero eos et eros magna imperdiet et ut. Kasd lorem magna nonumy lorem dolore takimata rebum ut clita iusto labore vel ea gubergren accusam. Magna at voluptua sed justo tempor ut consetetur. Magna elitr sit dolor. Consetetur et sit tempor sea vero velit eu velit et.

Sample Output H3

Duo vero rebum dolor elitr nonumy vero nibh voluptua elitr euismod minim et dolores erat iriure accusam. Rebum augue ea autem rebum sanctus et erat et sit ea eirmod. Kasd erat facilisi ipsum. Magna vero rebum lorem amet et lorem sit gubergren volutpat elit sadipscing id sadipscing dolore sanctus. Molestie sed qui dolor ut lorem aliquyam sanctus nulla te eirmod lorem nulla. Blandit ea amet option autem duo gubergren duo elitr erat clita amet. Luptatum exerci et et amet et sadipscing at stet. Dolores laoreet sea lorem autem dolores amet amet dolor nonummy labore clita erat sea clita. Tempor nibh tempor consequat vero dolore.

Adipiscing ad sea esse voluptua et est clita. Eum ipsum diam nonumy et clita labore in erat consequat labore gubergren. Erat veniam diam ut dolor dolores et id sed. In eirmod consequat dolores gubergren elit accumsan tempor no et. Eu accumsan ut nonumy duo rebum est no doming dolores adipiscing. Diam lorem delenit gubergren nonumy vero vulputate elitr kasd duo praesent clita dignissim sit amet.

Sample Output H4

Nonumy takimata vero eirmod aliquyam enim tempor sadipscing nibh rebum et sit adipiscing sit justo erat. Accumsan nihil no. Et lorem et magna quis nulla eos et eirmod ut justo magna. Sanctus sea nisl voluptua autem eos tincidunt et dolor. Et et kasd dolor dolore sed eum. Et no kasd sadipscing invidunt ipsum vero esse. Rebum diam nonumy diam ipsum soluta. Consetetur sed nam lorem voluptua euismod odio nisl nonummy exerci takimata eos ut erat takimata voluptua in nulla. Et amet clita vero aliquip dolor eos vero quis diam vel dolores rebum vero eos placerat takimata ut augue.

Ullamcorper tempor ut sit. Illum dolore liber velit dolor magna justo ipsum nonummy eirmod eleifend velit dolor dolor quis ipsum takimata. Erat in consetetur amet aliquyam nisl aliquip mazim erat elitr. Ut mazim sed diam nostrud duo lorem consectetuer diam eirmod amet sed ea clita labore diam accusam eleifend. Tempor nisl option augue suscipit est dolores ipsum odio. Vero feugiat ipsum diam.

Sample Output H4

Veniam ut exerci kasd erat lorem soluta duo dolore autem sea erat nonumy duis. Clita sed dolor sanctus at ut consetetur placerat. Vero duis at sit ea eu dolor ullamcorper aliquyam et eirmod velit magna nonumy volutpat iusto. Consectetuer eos takimata sit ullamcorper no voluptua dolor kasd velit est est feugiat vel ut magna dolore tempor. Dignissim et et aliquyam luptatum accusam adipiscing takimata elitr magna rebum ipsum eros labore et labore.

Gubergren amet nisl molestie volutpat placerat elitr sed. Ut nam ipsum lobortis enim ut dolor invidunt labore lorem diam sed consetetur accusam ut dolores. Feugiat eu aliquyam tempor takimata et rebum kasd at dolor te et gubergren elitr tempor accumsan invidunt ea duo. Te lorem dolores ipsum lorem. Nonumy consetetur quod et aliquyam erat vel dolore voluptua erat clita ea augue labore nonumy eirmod assum justo. Dolor est at nulla amet vero takimata.

Sample Output H3

Kasd magna minim gubergren eirmod takimata labore justo iusto gubergren aliquip ea et tempor et sea clita et et. Duo ullamcorper et luptatum tation sit sit dolore lorem consetetur hendrerit vero nonumy lorem justo consetetur augue dolor voluptua. Sit et ex diam zzril kasd ipsum dolores et luptatum. Dolor sanctus takimata facilisis lorem dignissim lorem et sadipscing gubergren ut eu. Dolor adipiscing kasd nibh blandit et amet kasd sit stet. Ipsum takimata sit dolores sed elitr sed.

Magna accumsan dolor eu clita ipsum sadipscing duis. Labore eum dolores molestie invidunt sea justo accusam sit consequat et liber sed. Eum sed adipiscing ipsum ut dolore magna amet et feugait consetetur nonumy exerci dolor. Rebum hendrerit clita ad nonummy duis ut illum consetetur et exerci. Et delenit rebum sanctus et et et sed. Option amet tation duo duo labore augue sed sadipscing dolor. Sea nulla dolore consetetur sed elitr sed vero elitr. Tempor at sit volutpat diam lobortis consequat et kasd at diam esse.

Sample Output H4

Nonumy justo sit minim quis. Consetetur aliquip eos eos takimata sit eu et. Elitr eu laoreet. Et clita erat clita sit diam congue voluptua justo et tempor elitr et dolor dolores est justo sit et. Dignissim dolore dignissim.

Elitr ea accusam dolores sea dignissim sit amet amet diam dolore invidunt. Amet dolore et euismod at duo qui consequat diam quod wisi enim sit amet clita eros molestie. Hendrerit dolore accumsan tincidunt voluptua. Gubergren facilisis dolor diam possim placerat clita delenit. Sed dolor ad lorem sed eos clita invidunt accusam est. Vero erat dolore ullamcorper soluta at ea accusam sed est tempor esse sit takimata. Delenit et ipsum clita.

Sample Output H4

Sit voluptua est sadipscing eum diam quod sit takimata. Ipsum esse et dolore eos duo erat eirmod augue et diam consectetuer labore iusto invidunt lorem gubergren. Facilisis ea facilisi te gubergren feugait eos dolore iusto dolores et lorem sed voluptua facer voluptua molestie duis eros. Clita nihil duo nostrud ut est vulputate labore hendrerit sit sed quis velit ipsum eirmod no nam sadipscing. Clita stet sit nonumy nonumy et wisi ut ea sit. Nonumy magna nostrud aliquyam consetetur sed nulla ipsum erat est ipsum diam duo in et et feugiat lorem odio.

Sed et wisi elitr ut ipsum aliquyam eum sit. In lorem vel. Dolor dolor dolor sadipscing quis clita exerci ea nulla no lobortis nulla eirmod autem dignissim labore rebum. Vel eirmod dolore facer ipsum dolor sadipscing dolor dolor iusto sed ut sit invidunt labore stet eos. Molestie elit aliquyam justo aliquyam sadipscing mazim ullamcorper blandit takimata rebum option. Dolores accumsan nulla at ea aliquyam facilisis. Sit ea ea diam ut invidunt tincidunt diam. Consetetur vel at est duo labore lorem diam ut magna ipsum. Duis invidunt aliquyam ut ipsum clita eu zzril.