www.cloudformatter.com

cloudformatter format requests: 6,315,543    pages delivered: 14,365,124

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

Accusam rebum sed ut suscipit diam blandit et delenit et assum voluptua takimata. Labore sadipscing consectetuer kasd amet lorem. Invidunt justo eum sed et nulla facer eos ut. Praesent ut ut clita dolor sanctus ut amet odio dolore enim feugiat dolor. Sadipscing autem suscipit sea adipiscing nulla dolores eu exerci et labore facilisis sed diam velit. Sed sadipscing at feugiat invidunt nonumy eos amet eirmod nam stet iriure.

Rebum vero et dolor tempor est labore eu tation eleifend nobis justo. Consectetuer diam dolor. Et gubergren invidunt enim sea et sed vulputate lorem consetetur facilisis et sed sed eos cum ut dolor sed. Invidunt ipsum duo dolore rebum vel in rebum praesent amet molestie duo suscipit diam stet labore vulputate no tincidunt. Sit est et kasd aliquyam minim erat accusam sed sit no lorem dolores ipsum sed dolore kasd sed. Aliquam sit zzril vel sadipscing nam kasd dolore blandit eu eirmod erat no sit dolore. Dolore accusam sanctus sadipscing sit at dignissim ex duo esse eirmod magna takimata diam dolor placerat ipsum. Sit amet dolore lorem invidunt vero diam sed kasd justo. Odio justo laoreet invidunt sanctus sadipscing suscipit est ipsum dolore eos. Sit soluta voluptua wisi sed nulla. Ipsum enim aliquyam duo autem sit voluptua imperdiet wisi et amet eos augue et clita.

Sample Output H3

Labore amet sit consetetur tincidunt lorem lorem eirmod lorem dignissim invidunt consectetuer dolor lorem ipsum et wisi vero. In ex sed. Aliquyam sit consetetur et duo no qui magna labore eos sed et eros facilisis et odio diam aliquyam. Takimata diam diam gubergren praesent gubergren no dignissim lorem. Invidunt ipsum illum takimata eum accusam ipsum sit delenit adipiscing. Labore takimata dolor. Nisl takimata nibh consetetur amet lorem ipsum gubergren sit et. Diam ut id nulla accusam.

Diam sed sit tation gubergren dolor tempor justo. Dolore magna dolore vero ipsum nonumy magna kasd ipsum molestie et ipsum eirmod tempor consetetur autem. Facilisis feugiat clita diam labore quis kasd stet volutpat vulputate clita amet consequat takimata sea. Dolore vel enim clita sit. Dolores dolor eu ut gubergren dolor praesent accusam duis tation sed facilisi nisl nonumy diam magna ipsum vel elitr. Est et et et. Duis duo ipsum est dignissim lorem dignissim sed dignissim ea sed voluptua.

Sample Output H4

Aliquyam dolore sit diam magna duo est molestie qui veniam dolor eirmod sed. Tempor magna rebum qui ad invidunt. Labore ex dolores voluptua no tempor. Tempor elitr justo eirmod et nonumy erat commodo takimata erat rebum ipsum. Sea luptatum dolor ea dolore magna dolore accusam. Aliquip et te sed. Et voluptua aliquyam ea delenit at accusam nobis sed gubergren. Et lobortis feugait. Ipsum cum sanctus et eleifend clita diam invidunt dolore minim.

No diam diam dolor erat dolore quis dolore aliquam erat magna. Vero rebum et eirmod placerat. Gubergren clita sed dolore volutpat ipsum consequat voluptua. Vel sadipscing nulla ad dignissim sea lorem diam clita stet stet. Labore sadipscing tincidunt et justo labore. No tempor aliquip ipsum nibh ut aliquyam te tempor veniam vulputate elitr ea invidunt. Dolores nonumy rebum imperdiet euismod elitr feugait diam stet duo.

Sample Output H4

Et justo congue zzril ipsum. Amet dolores labore elitr amet erat nonumy at eos. Aliquyam accusam nonumy volutpat praesent quis diam ipsum et vulputate at consequat sit dolore sanctus magna dolor et. Sed aliquam ea. Et et invidunt lorem vero consetetur labore facilisi diam sed nulla sea sadipscing et. Labore iusto sed kasd amet facilisi dolores ipsum et nonumy invidunt ipsum sed duo diam in sea. Ad stet consequat vel sed lorem sea dignissim labore invidunt dolores hendrerit.

No diam aliquam sed lorem diam et. Lorem accusam et rebum tempor delenit accusam nonumy gubergren. Eos minim nihil no diam diam ea tempor dolor consetetur lobortis vero magna doming ea ullamcorper nonumy nonumy. Duo placerat adipiscing amet sadipscing dolore tempor clita. Dolores clita magna nostrud stet sed kasd illum sit amet sadipscing nibh gubergren.

Sample Output H3

Te kasd iusto invidunt mazim duo amet gubergren sit et sadipscing ut ullamcorper duo aliquip consetetur nonumy duis eos. Exerci erat consetetur dolore lorem. Labore est sanctus amet tempor at facilisis ullamcorper adipiscing magna kasd lorem et sea amet. Rebum est aliquam aliquyam in rebum wisi nonumy esse labore erat sed dolor minim et diam stet rebum molestie. Lorem sanctus consequat.

Lorem sit aliquam labore. Laoreet ea accusam suscipit et diam clita in lobortis esse nonumy et sea. Ex assum accusam justo et et. Nibh eum est dolore ut et ipsum. Vulputate clita sadipscing dolore et nibh tation et aliquyam consequat diam. Quis vulputate amet sanctus est ea dolore dolores duo dolore dolore lobortis stet ut. Ipsum amet esse sea et stet lorem et laoreet sit nostrud accusam sit sit blandit sed tempor. Nulla eirmod invidunt autem dolore nostrud minim eirmod magna at est option accusam sit consectetuer diam duo.

Sample Output H4

Tempor sea commodo wisi et lorem gubergren augue diam dignissim odio amet et consetetur. Ut eu ipsum sed luptatum gubergren amet ad dolore vero ipsum. At dolor et justo clita sed dolore kasd magna sed placerat molestie autem vero amet ut aliquip. No aliquyam tempor volutpat sea lorem erat vero nonumy et illum no feugiat. Laoreet diam duo amet vero sit sed accusam ut labore eirmod. Elitr rebum delenit sed kasd dolore et sea elit duo placerat diam invidunt dolores vulputate illum diam sit autem. Dolore amet kasd duo takimata dolore.

Et assum justo volutpat kasd lorem stet lorem ipsum. Et vel no sed sea tempor lobortis consetetur stet. Clita dolor feugiat takimata lorem eu no sed dolor dolor et sanctus lorem dolor sadipscing. Veniam et takimata praesent est no vulputate kasd erat sed feugiat diam et voluptua stet clita eirmod. Lorem voluptua et rebum amet wisi vel accusam duis.

Sample Output H4

Consetetur ut hendrerit lorem eum diam dolore et eum invidunt volutpat et. Aliquyam voluptua sit duo adipiscing autem labore elitr eos consetetur dolor eirmod takimata consequat. Vero sed labore clita velit et dolores elitr nonumy in quis esse. Quis hendrerit eirmod dolores aliquyam ut et at wisi nibh est dolor dolores invidunt. Laoreet dolor clita invidunt ut amet stet nonumy dolor accumsan nonumy sanctus facilisis et kasd diam accusam gubergren et. Dolore diam magna sea est ad. Ut zzril vel kasd ut dolor no dolore rebum nulla vero diam. Ipsum accusam tempor sadipscing sed dolor nonumy tation suscipit lorem duo sed dolor aliquyam nonumy sit. Lorem duo eros augue lobortis dolore esse clita est exerci molestie. Minim illum minim et consectetuer ut iriure sit tempor et feugait clita est ea labore dolor et esse. Vero molestie amet at est qui in dolore nonummy volutpat ea.

Lorem augue sadipscing dolores ex no aliquyam invidunt. Ipsum nibh eirmod et ea sea takimata invidunt et sed amet magna gubergren feugiat aliquyam ut et. Aliquyam diam lorem accusam vulputate erat tempor lobortis diam et volutpat euismod clita nibh lorem aliquyam. Elitr tempor aliquyam lorem adipiscing dolore sed elitr ut tempor laoreet nibh magna stet. Sadipscing gubergren sit no sit voluptua ut gubergren aliquam nibh eu ut takimata feugiat aliquyam vero.

More Sample Output H2

Nonumy tation labore elit diam. Amet ut sed duo sadipscing aliquyam diam erat. Clita amet dolor euismod sed sit gubergren. Sed euismod sed ea dolor dolore facilisis eum nibh amet magna erat. Dolor dolore et diam rebum tempor dolor duo. Tempor congue dolore voluptua suscipit dolor sed duo dolore. Justo sit sanctus est lorem dolore ipsum. Duo hendrerit augue erat dolor mazim accusam eos invidunt dignissim eirmod blandit autem clita esse erat et lorem. Accusam sed autem kasd sit nonumy justo praesent iusto sed sed et lorem et consetetur. Gubergren invidunt dolor dolor erat est eu eu iriure.

Rebum eros illum. Est qui esse diam ea dignissim. Invidunt sed sed diam et ex sea dolore duo ipsum et augue feugiat et. Sit eirmod commodo enim. Vero et sit lorem voluptua elitr delenit et eu ea diam erat sed labore. Eos vero nonumy et dolore et accusam stet nulla quis sed. Magna justo aliquam accusam vel justo et ipsum tempor sed vero delenit invidunt invidunt dolor eirmod ipsum rebum consetetur. Dolor sanctus augue placerat kasd sadipscing et rebum. Tempor vero exerci dolore nonumy. Qui gubergren vel delenit no dolor kasd eirmod sed ex sea dolores aliquyam et et gubergren consetetur dolores.

Sample Output H3

Facilisis sanctus dolore sit eleifend tempor ipsum elit et et magna aliquip dolor. Elit sed nibh amet ut. Clita dolor ut sed. Vel ipsum amet et autem erat erat. Iriure lorem nihil erat lorem rebum et gubergren luptatum lorem sanctus ipsum takimata magna tempor est est et feugiat. Dolores et vero est sed sadipscing sanctus et nulla erat eirmod sadipscing dolor autem. Minim invidunt amet sed consequat sit option iriure placerat sed et sed aliquyam. Exerci zzril exerci blandit dolor dolor. Elitr sadipscing esse est sea eirmod dolor. Clita stet dolor illum vero at invidunt est.

Invidunt vel lorem zzril diam ipsum zzril voluptua. Amet rebum amet sadipscing est takimata exerci et sadipscing amet voluptua sed ut stet sadipscing elit ea. Et aliquyam at justo gubergren accusam voluptua kasd duo vel. Amet lobortis no dolore est amet tincidunt sit in stet dolore magna eos et. Duo aliquyam clita et sed et sanctus delenit labore liber. Gubergren tempor diam volutpat sadipscing eirmod duo no consetetur diam dolor eum dolor kasd lorem. Dolor at ut no et sit amet.

Sample Output H4

Amet sit gubergren. Nam sanctus at autem feugiat sed tempor doming accusam et sit aliquyam rebum et esse et ut. Kasd ullamcorper sea commodo takimata placerat consequat et rebum tempor lorem dolore consetetur. Labore sit suscipit labore et. Accusam et amet labore magna est diam erat takimata vel eum ut kasd lorem invidunt. Dolore est duo soluta dolor vero sed lorem sea. Voluptua gubergren amet stet at lobortis autem lorem nam ut sadipscing sed.

Praesent justo luptatum dolores. Diam tation et lorem sea duo eleifend adipiscing nonumy stet dolor. Sit diam diam facilisis aliquyam et nostrud et elitr odio stet labore feugiat et nonummy diam volutpat amet. No clita exerci ipsum sea eos diam dolores amet stet. Sadipscing imperdiet feugait illum sed ea.

Sample Output H4

Invidunt dolor eirmod dolor duo luptatum autem diam dolor diam ullamcorper iusto duo eirmod. Eirmod erat elitr suscipit vel diam veniam. Dolor sanctus est erat molestie quod sadipscing mazim ad nonumy voluptua rebum stet accusam ea sed nonumy amet ut. Nonumy qui nulla molestie est eirmod volutpat ut ipsum nonummy takimata sit consetetur aliquam aliquip sed stet laoreet. Iriure lorem lorem dolor dolores sed vero dolore dolores ea dolor ut diam accusam et voluptua dolore. Blandit vero eum et et in ut aliquyam at assum minim labore vero erat velit.

Ut aliquip eos elitr iriure congue sed justo sanctus dolor clita accusam aliquyam vero eum. Sea sed ipsum dolor eos. Te kasd tempor et ut labore aliquip diam lobortis aliquyam takimata magna rebum diam diam sed. Dolor aliquam lorem amet consequat vero gubergren erat delenit justo imperdiet dolores labore eirmod rebum amet takimata no. Nonumy dolor nostrud sadipscing dolore ea tation magna dolore ipsum gubergren ipsum dolore dolores tempor.

Sample Output H3

Et dolore dolore invidunt diam nisl accusam ea est vero eirmod sed sadipscing ex voluptua dolore rebum invidunt dolor. Et sit dolor. Sadipscing consetetur aliquyam. Ea dolores eirmod eu duo dolor facilisis et duis sadipscing dolore eos. At aliquyam sed wisi diam lorem volutpat dolores in et eleifend vero iusto no. Kasd elitr sadipscing dolore gubergren labore labore nonumy quis sed iriure enim et amet illum accusam sanctus diam hendrerit. Diam vel aliquyam ipsum dolor.

Sadipscing illum dolore accumsan dolore tempor dolore consetetur in. Consequat diam et ad facer. Feugiat luptatum voluptua vel dolores et amet no wisi ea. Eum accusam ipsum invidunt rebum duis kasd diam est hendrerit. Eum nibh tempor at magna accusam tempor nonummy et dolores lorem. Kasd sanctus ad sit. Et sea eos diam feugiat no rebum laoreet dolor.

Sample Output H4

Labore takimata et esse et diam invidunt enim lorem te eros diam aliquip elitr consetetur aliquyam. Diam elitr duo duis eum nibh. Minim justo kasd lorem duo stet ipsum facilisis dolor no mazim rebum. Dolore eos et aliquam amet nulla kasd. Et dolor ipsum sit aliquyam. Iriure eum eros justo sanctus autem ut et lorem dolor erat eleifend sed nisl clita ad elitr. Aliquyam justo lorem est no dolores lorem magna ut. Dolore sit minim dolore et sed tempor est justo.

Ipsum dolor duis justo et ipsum no velit et magna lorem amet amet et gubergren consequat. Duo gubergren wisi at voluptua. Takimata laoreet vero elitr euismod stet rebum eros autem illum magna. At invidunt volutpat voluptua blandit suscipit sadipscing erat nostrud vero dolor stet lobortis clita. Accusam et sea sadipscing iriure eros invidunt sanctus kasd sadipscing in dignissim. No vero tempor. Duo feugiat ut amet et exerci feugait sanctus eos ad amet erat stet gubergren.

Sample Output H4

Takimata sadipscing nisl molestie et consequat molestie magna minim sadipscing. Diam nonumy dolores justo justo duo dolor erat aliquyam diam euismod. Illum gubergren stet illum magna invidunt gubergren ipsum vel nonumy lorem molestie ea blandit dolore. Sit diam et ipsum gubergren sanctus eu. Dolore diam placerat ad wisi consequat. In dolore tation at lorem diam est diam et aliquyam amet et nonumy. Congue vero liber dolor eos sed eos aliquyam voluptua accusam at ut ut amet sea dolore sit aliquip dolore. Consectetuer et eos nonummy lorem est clita justo.

Adipiscing ut nulla. Nobis et ut justo sadipscing esse lorem. Doming lorem illum ut invidunt eirmod dolore consequat. In eirmod nonumy dolore in vel erat invidunt dolor luptatum lorem. At vulputate in voluptua.