www.cloudformatter.com

cloudformatter format requests: 3,393,254    pages delivered: 8,753,133

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

Labore est rebum suscipit sit dolor dolores dolor et sit esse erat dolor dolore ipsum tempor laoreet. Sea justo justo magna ipsum consectetuer diam vel et sed takimata clita sadipscing elitr eos at. Diam duis accusam vulputate autem. Rebum nobis nulla sed magna ut no labore. Invidunt lorem eu qui diam sed ut stet nonummy dolore et takimata possim no ut hendrerit sit. Magna eirmod sadipscing commodo at clita. Velit eos magna dolor justo duo et sadipscing nostrud gubergren consetetur erat duis ipsum.

Lorem clita rebum et dolor vero nulla dolor dolores hendrerit nam amet vel. Qui nulla ut sed eirmod. Amet lorem nonumy sadipscing dolor ad diam lorem rebum ipsum labore erat vero amet sadipscing. Sea eum clita ea ipsum et sed elit kasd adipiscing dolor takimata gubergren invidunt quod. Dolore ut aliquyam clita eos et duis esse sit sea diam. Quod ut lorem sit sed et ea nonumy sit takimata takimata stet gubergren feugait ea takimata dolores accusam nulla. Lorem at justo et molestie aliquyam et at ea takimata duo vulputate sanctus no tempor justo sanctus. Facilisis aliquyam lorem aliquip amet eos clita praesent dolore ipsum tincidunt accusam diam voluptua ut dolore.

Sample Output H3

Exerci veniam velit dolor magna at. Et in invidunt facilisi dolores iusto sit sed eirmod. Diam vero ut sit aliquyam sit et feugiat sit dolores sed dolores elitr. Eos consetetur takimata facilisis eu in enim lorem quis et ut labore. At lorem ut sed kasd dolor magna dolore eros erat ipsum tincidunt dolor qui molestie stet elitr. Lorem duis aliquyam blandit eos eleifend praesent no. Nulla facilisis dolore justo sed amet ut sed vero gubergren et ipsum adipiscing. Feugiat enim et hendrerit sit magna sea aliquyam liber est vero. Takimata erat et ipsum diam vel ipsum et. Amet magna gubergren magna vel et.

Ipsum blandit vero lorem sanctus amet est takimata eos ea amet. Nostrud at vero erat consetetur tation eirmod adipiscing voluptua dolore erat nonumy diam quis volutpat dolore. Sed est sit congue dolor dolore molestie amet wisi sit dolore tempor diam diam nibh. Ut amet accusam nibh aliquyam et ut eu sadipscing lorem clita et qui gubergren kasd dolor hendrerit dolor. Iriure ipsum lobortis sed et molestie congue duis sanctus et. Ut veniam duo at sadipscing enim duis takimata ut rebum aliquyam. Ut ipsum et rebum elit est sed labore feugiat nonumy consequat ut.

Sample Output H4

Eos eos lorem sit delenit justo lorem rebum nobis vulputate sanctus dolor labore dolor vel dolore nostrud consequat nulla. Dolor erat facilisi accumsan duo mazim et sanctus. Dolor sadipscing et sit aliquyam iriure dolor. Sanctus justo duis feugiat elitr ea sadipscing takimata labore et consetetur tempor dolores consetetur. Diam consetetur clita sadipscing accumsan magna labore et ipsum ipsum diam aliquip augue takimata dolor est vero.

Accusam sit justo lorem gubergren sed eos et labore odio accusam dignissim et dolore sea amet justo duo. Vero voluptua dolor dolor quod sit diam gubergren nonummy sit. Et lorem in labore iusto dolores clita diam invidunt erat et rebum ex justo et clita eirmod. Lorem duis et invidunt at amet eos lorem lorem vel assum amet tempor consequat et sit odio. Stet clita lorem. No erat et lorem. No sed diam sed et aliquyam nostrud in et duo erat aliquyam. Commodo ut stet voluptua.

Sample Output H4

At dolore magna. Delenit ipsum lorem tempor labore rebum ipsum. Et hendrerit sit zzril sea diam. Dolores accusam consetetur gubergren clita velit sed tempor sea eu tation diam dolore nulla magna. Iriure dolore sea rebum stet sanctus no eu at justo sed no nulla aliquam autem lorem tempor diam tempor. Ipsum erat duo. Eos veniam sea et mazim invidunt et amet nonumy nulla ullamcorper est dolor clita nisl.

Rebum et sadipscing takimata dolore ipsum lobortis lorem eros sed eos diam ea rebum et hendrerit et et stet. Ipsum tempor ut ea labore. Dolore dolores in ipsum at voluptua diam ipsum gubergren nonummy. Aliquyam sed rebum. Vulputate magna amet wisi accusam ut minim facer dolor. Nam et te vero diam vero ad et autem dolore diam sanctus et dolores ipsum dolor clita minim lorem. Te consequat vero amet quis sanctus. Et stet erat molestie dolor wisi et velit. Ut amet nonumy sed illum.

Sample Output H3

Magna ea wisi no sed duo nulla sit dolor stet dolore est eos. Lorem stet et in sed dolor ea augue ut nulla sit congue liber clita consectetuer sed rebum lorem. Et elitr voluptua amet dolor blandit ea nonumy invidunt sanctus sea invidunt esse stet illum ut magna. Consequat sit accusam et invidunt eros gubergren sea lorem. Elit id liber ut voluptua sadipscing lorem et eos duo. At quis nonumy erat eos dolor ut dolore. Tempor sea diam tincidunt sit ipsum takimata ipsum velit duo ut labore diam lorem sea nostrud.

No sadipscing no dolores adipiscing clita sanctus eos voluptua luptatum tempor augue ut liber consetetur aliquyam feugait lorem. Sed et facilisi invidunt sit diam est labore eos odio consetetur magna molestie iusto dolor. Vero no et facilisis voluptua consequat kasd ipsum vero et. Kasd lorem erat vero dolor et ipsum at kasd tempor vero takimata accumsan nibh erat soluta blandit. Lorem dolores sed takimata. Justo est dolore. Rebum elitr vel id facilisis labore dolores consetetur qui amet feugiat. Sea justo magna diam kasd dolores qui rebum. Wisi duo diam invidunt accusam dolores justo lorem takimata no ipsum justo lorem eirmod et delenit. Augue sed facilisi eu tation elitr accusam amet.

Sample Output H4

Dolore dolores duis sit vel amet diam lorem eos est sea exerci amet ipsum diam aliquyam dolor consetetur. Te dolore et voluptua enim iusto diam. Iusto est gubergren voluptua at. Justo iriure tempor facilisi in duo feugait dolor diam elitr. Ipsum est invidunt et sea magna takimata sed enim dolor molestie facilisis. Magna ea elitr eirmod. Consetetur rebum ipsum et ea amet at. Aliquam nibh diam et ea.

Eu lorem volutpat eirmod. Erat nulla lorem sit eu lorem feugiat clita dolor eros at at accusam erat sit erat eu. Nonumy vero duo. Eros amet consequat eum. Dolore odio no commodo. Tempor vero ut lorem no ipsum ipsum consetetur ut minim. Clita aliquyam dolor luptatum invidunt amet. Stet erat erat rebum vel eos dolore feugiat. Invidunt et erat sed eirmod no no tempor et sadipscing.

Sample Output H4

Nulla dolores erat nonumy sanctus sit quis takimata illum hendrerit sit invidunt diam accusam voluptua eirmod hendrerit nostrud stet. Zzril hendrerit et vero sit accusam dolores ipsum sed rebum enim in. Ullamcorper sadipscing stet ea sed sed et diam. Sit consetetur justo feugiat ea dolores tempor nam aliquyam placerat magna nonumy aliquyam. Amet vero nonumy. Gubergren voluptua doming gubergren gubergren sed invidunt ut erat sadipscing iusto. Blandit justo labore clita eirmod et aliquip lorem vero sit dolores.

Voluptua eum illum. Est rebum voluptua ipsum sanctus at veniam at duo ut nihil aliquyam augue eirmod. Lorem duis eos elitr. Voluptua blandit kasd et aliquam magna ea gubergren iusto eirmod et at est magna eos autem nonummy lorem. Ipsum in lorem dignissim iusto sea sea quod stet eos vero voluptua ipsum et voluptua sed est.

More Sample Output H2

Nobis voluptua gubergren praesent eirmod lobortis sit duo accumsan ad ea rebum ipsum eos gubergren. Illum sea ipsum. Augue clita erat soluta erat commodo diam. Vero dolor volutpat dolor augue at. Tempor eirmod diam lorem et.

Nobis voluptua lorem sadipscing et eos voluptua voluptua amet et voluptua rebum nonummy diam laoreet at aliquyam. Nulla lorem amet sed sit clita eleifend. Molestie eos est placerat no dolore dolores. Gubergren kasd lobortis consetetur diam ipsum eos dolor ut luptatum. Amet ipsum hendrerit consequat dolore gubergren et lobortis. Consetetur vero aliquyam invidunt sea sadipscing exerci soluta ut et kasd eos clita duo stet vero accusam ut. At aliquyam dolor feugait magna dolore dolores stet elitr no takimata nonummy ut consetetur labore delenit. Aliquyam et soluta ea augue et gubergren magna lorem et erat erat.

Sample Output H3

Gubergren ullamcorper sit gubergren tempor dolor veniam. Lorem consetetur eu minim consetetur stet laoreet sed erat. Eos no sit erat commodo consetetur kasd gubergren. Augue gubergren nonumy rebum labore autem. Et et sanctus diam sit eu in magna no. Diam ipsum exerci duis eos vel stet gubergren et et voluptua velit no ut. Diam diam sit vero ea aliquyam iriure dolores eros ut aliquip. Dolor ad vulputate dolor option sed sadipscing lorem stet dolores sadipscing diam ea vero est. Eu eros eros stet iusto in justo lorem dolore takimata et clita aliquyam magna invidunt aliquyam. Et clita kasd labore dolor amet.

Ipsum hendrerit consetetur praesent kasd sadipscing accusam quod. Nam ea nonumy in adipiscing nibh clita lorem duis iriure sed aliquyam. Magna eos stet est. Zzril sadipscing sadipscing nibh lorem consetetur dolor. Ipsum at eirmod facilisis ipsum erat justo kasd consetetur et sed clita ullamcorper sit ea invidunt. Dolor elitr justo ut exerci elit eos accumsan ea nisl eleifend gubergren aliquyam esse. Nonumy quis sit invidunt kasd lorem in sit. Rebum nisl erat labore no voluptua dolore ad vero duo imperdiet justo nonummy ut accusam rebum dolore nonumy duo. Diam consequat no blandit amet dolores amet suscipit duis at nostrud sadipscing nulla sea gubergren sanctus sit.

Sample Output H4

Sadipscing ut eirmod invidunt kasd eirmod doming sit diam ullamcorper dolor sit. Sed nonumy nulla autem voluptua consetetur diam. Sed diam amet amet tincidunt lorem et illum consetetur et stet consectetuer facilisi elitr. Amet consequat dolor aliquyam. Et sanctus amet et clita. Dolores nostrud amet rebum vel sea. Diam et magna eirmod tempor justo soluta vero duo delenit vel feugiat stet lorem ut takimata. Amet eos augue erat diam accusam et sed stet diam invidunt stet. Nonumy ipsum sanctus sea nobis at magna erat. Labore sit tation lorem feugait et exerci. Clita et ipsum.

Dolore clita sit stet sit lorem sadipscing illum et dolores consetetur dolores clita takimata et eos et no. Lorem et accumsan dolor tempor. Elit diam dolor labore et cum te sed voluptua clita duis erat esse stet et justo erat. Sit amet luptatum invidunt. Diam id gubergren eos amet et lorem ea kasd in ut dolores. Sea dolor at feugiat illum aliquyam gubergren amet gubergren. Dolore zzril duis sed tempor ea voluptua tempor sit diam ipsum kasd vero velit nibh.

Sample Output H4

Et sit ut justo duo erat lorem. Ea dolore vel luptatum amet aliquyam duo stet duo. Tempor adipiscing vel dolores sit eirmod lorem sea amet et. Qui et dolor nonumy cum eirmod ipsum voluptua at ea ipsum clita dolore et dolore eos. Dolor voluptua labore luptatum clita aliquyam invidunt euismod eirmod sanctus eum quis facilisis sed. Lorem sit aliquyam. Elit autem elitr et invidunt invidunt exerci enim vulputate iusto rebum consetetur et ea. Takimata justo ea vel sea diam sit id delenit eu invidunt augue dolor. Cum sea ex sed dolore sanctus no gubergren illum.

Ipsum zzril iriure takimata at sit exerci autem diam. Ea magna lorem. No amet amet sit id labore ut clita gubergren et veniam et dolor et molestie quis ipsum ea et. Eirmod nostrud eirmod in in est et lorem sit sed molestie ipsum dolore justo ullamcorper gubergren no dolor at. Sanctus quis est vero gubergren. Eum et diam dolores nulla veniam eos. Duo praesent takimata dolore sanctus nonumy no.

Sample Output H3

Clita soluta sit erat et dolore hendrerit. Amet kasd dolor nibh at ex consequat erat facilisis clita. Accusam ut diam eos aliquyam vero sit elitr voluptua consequat elitr invidunt. Sit amet tincidunt accusam ea nonumy. Delenit takimata dolores voluptua tempor accusam elitr diam rebum hendrerit. Diam diam ullamcorper est diam et facilisis et duis eu ex no. Vero at dolor sit sed voluptua duis rebum dolore accusam lorem autem aliquam eu eirmod no et kasd. Nobis amet et no magna elitr gubergren ullamcorper sed ipsum kasd sadipscing gubergren consetetur magna duo sed. Nibh clita tempor aliquyam nonumy et. Et sed diam facilisi elitr.

Ut nibh duis gubergren no et. Elitr justo in dolore ea ipsum nonummy consetetur esse labore rebum sea illum voluptua lorem diam dolore magna nulla. Consetetur ut hendrerit ipsum ut sed consectetuer eos dolor et tempor gubergren rebum sea labore sadipscing erat at vero. Erat at consequat duo sadipscing dolores diam accusam nisl tempor at lorem clita sit lorem tation vel facer dolor. Et lorem veniam eos sit lorem ad elitr sadipscing. Vulputate no duo nulla iusto justo gubergren accusam est consectetuer amet kasd dolor ea sed et feugiat labore ipsum. Rebum diam autem eu diam diam et stet dolores.

Sample Output H4

Lorem erat consequat vel lorem. Aliquip sea voluptua diam sed amet eleifend sed ipsum justo duis ea labore iusto nonumy vulputate eu ullamcorper nostrud. Nobis vulputate iriure invidunt lorem est dolore dolor dolor dolore labore dolor elitr sit. No aliquyam est lorem sed amet euismod sit sea tempor consequat dolore ut quod sadipscing delenit diam justo. Vulputate dolores quis invidunt et est dolores blandit eos eos ut consetetur vero et veniam aliquam no sed. Molestie eirmod diam dolor odio ipsum at laoreet autem labore.

Consetetur lorem et diam consetetur magna facilisis invidunt lorem consetetur diam soluta eros vero. Vero eu facilisi vero consequat tempor ipsum ex. Kasd lorem elitr nonumy consetetur sit et. Ea ullamcorper diam amet dolore consetetur luptatum nonumy lorem sadipscing takimata diam. Iriure voluptua lorem in dolor consetetur sed ipsum consetetur ipsum nostrud enim stet ea veniam diam.

Sample Output H4

Feugiat at eum vulputate nonumy kasd dolore sed molestie voluptua ex ut amet amet augue magna duo nonumy. Blandit elitr sea sed et dolor facilisi. Congue et aliquyam sit amet sea dolor ut sed rebum sanctus. Labore lorem kasd. Rebum facilisis sed aliquam enim sit quis sit eros. Et ipsum sed dolor delenit duis ad et invidunt velit est vero diam gubergren. Diam aliquyam takimata stet dolores ut facilisis dolore nulla rebum liber clita labore ut vel gubergren et. Ipsum invidunt lorem ea clita amet diam justo dolor justo nonumy eos in et.

Sed accusam lorem labore nostrud aliquip sadipscing et exerci et gubergren. Vel magna sanctus dolor eos rebum dolores tincidunt sanctus duo at sed nulla sed. No dolore mazim vero magna minim nonumy takimata eros at lorem labore. Vero eirmod hendrerit tempor diam labore euismod accusam dolore iriure labore diam nonumy. Sea gubergren kasd rebum no diam aliquyam et laoreet et diam facilisis sadipscing.