www.cloudformatter.com

cloudformatter format requests: 6,321,571    pages delivered: 14,374,686

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

No gubergren kasd sed eirmod sit autem iusto elitr consequat ut kasd gubergren et dolores invidunt. Ut rebum est sed eos sea est nonumy nonumy dolor eos et dolor laoreet consequat et kasd. Lobortis dolore ut gubergren nonummy et minim hendrerit wisi accusam dolor erat odio eirmod volutpat. Dolore et wisi magna elitr ipsum sanctus diam lorem accusam laoreet tation amet sed sanctus erat lorem minim. Dolore est nulla invidunt eirmod. Nobis exerci ea accusam dolore eos ut. Consetetur sed sed ipsum elit dolore praesent nulla sit. Sanctus stet sea consetetur tempor et eos aliquyam est at labore ipsum takimata dolores ut. Dolore voluptua nonumy justo accusam ipsum tempor diam sit odio erat sanctus ipsum illum sit duo in ea.

Nobis sea ut molestie dolores luptatum duo no sed aliquyam et gubergren no. Voluptua et eros kasd nonumy sed voluptua dolor quod minim invidunt kasd. Accusam aliquyam et dolor sed amet gubergren laoreet ut sit. Sit est magna consetetur elitr et molestie duo dolor clita sadipscing. Sed ipsum nibh nonumy dolores duo dolore vero consequat voluptua. Kasd stet enim diam elitr sadipscing dolore ipsum no velit takimata no ut facilisis dolore voluptua iusto sadipscing justo. Ex ipsum sed vulputate sanctus molestie stet.

Sample Output H3

Et sadipscing justo veniam sit justo ea quod in iriure no diam no et ea et. Sed consetetur dolor. Kasd elit vel minim laoreet delenit lorem elitr est nibh aliquyam exerci zzril at wisi. Erat dolores gubergren et aliquip consetetur ipsum kasd dolor elitr sed vel liber dolores sadipscing ex. Rebum eos id eos ipsum dolor odio kasd consequat takimata eirmod consequat rebum.

Et dolore no at ut qui takimata et dolor consequat feugait aliquyam. Vero sanctus in consequat vero no amet ipsum accusam ea diam et et sanctus amet sanctus consetetur adipiscing velit. Takimata voluptua iusto sea justo. Stet takimata facilisi no et dolore labore ipsum duo. Justo lorem consequat et tincidunt est dolor duo dolore lorem nulla stet takimata dolor. Diam invidunt lorem vulputate sit dolore aliquyam ea sadipscing. At erat clita at molestie tempor dolore tempor facer velit diam. Est et lorem stet dignissim no.

Sample Output H4

Duo labore stet. Dolor vulputate blandit ea amet id facilisi sea at sit lorem at ut. Gubergren dolores stet facilisis ut et ex stet aliquyam sadipscing invidunt assum rebum et amet lorem et. Et id zzril feugait dolor duo tempor amet sed et dolores eos vero. Duis zzril elitr. Voluptua sed ipsum nisl invidunt blandit gubergren feugait erat aliquyam adipiscing ipsum sea at ea sit. Sed quod nulla amet sit diam diam dolor adipiscing dolor nibh. Takimata sadipscing et aliquyam et erat sed adipiscing gubergren suscipit clita lorem hendrerit magna diam vel kasd sea eros. Lorem justo ut et aliquip diam aliquyam volutpat nulla sadipscing invidunt in ipsum facer voluptua lorem ea. Eirmod sit consetetur takimata dolore dolores nonummy ullamcorper sanctus diam. Takimata invidunt sed dolore accusam dolore sanctus est amet consequat sanctus ipsum possim est dolor.

Minim tempor dolor tempor dolores est et ipsum kasd dolor amet in gubergren. Diam suscipit sanctus aliquam vero. Justo magna sanctus lorem eu dolor no aliquip ipsum ut ipsum et facilisis justo. Tempor eirmod clita. Magna et eos sed et dignissim et invidunt aliquip wisi. Et cum clita consetetur et duis no soluta est quis nonummy tempor amet nam. Nisl et tempor ipsum est ut sadipscing kasd elitr ut eum velit tempor aliquyam et ex et. Nonumy diam volutpat.

Sample Output H4

Sit erat et est sea consetetur blandit ea vero. Voluptua ut elitr ipsum et gubergren magna nonumy. Justo et laoreet amet feugait et justo kasd sadipscing. Kasd dolores exerci vel diam invidunt molestie magna lorem aliquip dolores sadipscing velit. Sit erat sed nulla aliquip consequat voluptua labore sit at est. Gubergren amet zzril dolore invidunt labore gubergren.

Dolore consectetuer odio dolor stet justo aliquyam no nisl et voluptua lorem duo. Lorem quod delenit vero eros accumsan autem amet dolor sadipscing sea voluptua assum consequat kasd qui. Et eirmod stet ipsum dolor et tation takimata illum diam at vel ea et esse sed sanctus. Sea est sed dolore eum amet dignissim iriure erat exerci molestie duis veniam sadipscing et. Sadipscing kasd sanctus erat aliquip dolor sed ut sit sadipscing magna. Ut dolor eos ut diam et sea ipsum odio labore in stet sed dolor sit sit accusam. Dolores dolore rebum at ipsum et. Diam duis sanctus magna. Iusto qui ipsum duo sanctus vel dolor sit dolores vel ea ex et elitr et elitr dolor amet sanctus. Sit ipsum voluptua dolor justo ut dolor duo ipsum aliquip duo sit labore.

Sample Output H3

Eos duis sed eos vel elitr sit stet cum. Erat ipsum consetetur lobortis consetetur voluptua duo et vel illum. Elitr feugait amet dignissim dolor est possim eos ea luptatum magna eos magna ipsum consetetur. Eros eos tempor consetetur molestie elitr takimata consetetur velit. Rebum lorem facilisis amet justo dolore eos et aliquyam diam et. Dolor accusam kasd eleifend possim ea nulla vulputate erat takimata amet dolor in no volutpat vulputate. Aliquam lorem sit sit et in.

Rebum duis nonumy sea elitr dolores est elitr. Aliquyam et et et ipsum sed et et possim at diam sed sadipscing. Ea dolor congue nibh. Lorem at feugait lorem vel rebum et eirmod tempor kasd tempor. Eum gubergren et aliquyam sit tation diam eu dolor zzril. Autem et amet nostrud vulputate ipsum ut. Clita et soluta consetetur stet possim dolores lobortis et clita tempor et sit ut invidunt facer duo et aliquyam. Amet suscipit stet vero dolores exerci. Duo consetetur vero ut.

Sample Output H4

Sed nulla duo erat amet no sed labore lorem et tempor no lorem stet. Erat nonummy at ut suscipit vel kasd dolor sadipscing sed voluptua justo at et ipsum veniam diam. Lobortis feugait gubergren lorem clita sit facilisis ipsum erat amet ipsum. Lorem erat rebum rebum accusam et et duo diam invidunt et est at. Eos diam minim duo dignissim. Diam eirmod stet justo et te et nonumy diam et veniam ea amet ea sed tempor. Aliquyam facilisis magna feugiat diam feugait enim eum est clita. Feugiat velit et iriure consetetur nihil sit kasd sanctus quis clita.

Sadipscing consetetur takimata takimata amet est consetetur et. Ipsum sit nam nonumy at ex erat iriure. Zzril lorem suscipit dolore justo eu. Est accusam ea erat eirmod amet invidunt sit nonummy hendrerit commodo sit veniam quod consectetuer duo invidunt stet invidunt. Nonumy et justo aliquam magna consetetur diam dolor dolore diam diam at sadipscing eirmod. Praesent erat sanctus nulla sea molestie nam nibh nonumy ipsum gubergren ipsum lorem erat aliquyam takimata ad. Sanctus erat blandit dolor ea molestie diam dolore possim possim aliquip sea elitr sed eos ipsum.

Sample Output H4

Eu lorem kasd accusam aliquip quis. Volutpat hendrerit elitr clita dolores ea. Ea te dolore no doming eirmod ea ipsum eleifend. Consetetur duo et. Takimata et erat est amet sea diam dolor accusam diam duis lorem iusto.

Invidunt et odio diam dolores dolor amet stet magna ipsum ut no tempor lorem ut voluptua molestie. Consequat quis takimata clita nam eos. Exerci consectetuer diam et nonummy vulputate dolore lorem est facilisis takimata elitr sed sanctus. In justo elit ipsum consetetur dolore ut quod velit. Stet ipsum nonumy ea voluptua ullamcorper dolore congue feugiat eos sadipscing voluptua. Erat magna vero eos labore at erat ea ullamcorper sit clita eirmod. Duis tempor stet gubergren sed sadipscing esse et wisi eum nam aliquyam erat.

More Sample Output H2

Dolor magna aliquip sed zzril ut et est ea. Magna erat nam kasd. Aliquyam sea diam takimata rebum sed sit accusam dolore lorem labore. Amet esse tempor ut gubergren et voluptua vero takimata justo sit vero et erat rebum minim dolor. Hendrerit et erat consetetur dolor et erat est diam. Elitr gubergren et facilisis clita at. Dolores dolore vero stet nihil dolores invidunt amet kasd no dolor ipsum dolores rebum. Justo dolor et et hendrerit facilisi nostrud takimata est aliquyam aliquyam facilisis magna ipsum amet. Eum enim magna autem facilisis diam sadipscing. Ea feugiat diam velit accusam sed eirmod vero ea dignissim vulputate sit diam accusam dolore in euismod at. Dolore volutpat no sanctus sit.

Takimata et ut amet exerci vero nulla aliquyam sed kasd erat vero dignissim quis sit takimata. Clita elitr ipsum dolor vero vel sea sed. At kasd imperdiet sanctus eros autem. Amet et dolore nonumy amet sadipscing rebum eos sea amet iusto sed ut sanctus diam magna veniam et sadipscing. Illum justo luptatum takimata doming gubergren takimata clita dolores wisi ut ipsum ipsum duo liber id. Dolores sed et erat voluptua. At voluptua elit velit delenit dolores eu ut eos autem clita id rebum tempor. Dolore tincidunt ut vero.

Sample Output H3

Ipsum diam eum molestie erat veniam stet dolor sanctus accumsan sit sanctus. Gubergren labore ea est sadipscing et nisl illum kasd aliquip labore. Sed takimata kasd invidunt odio labore velit ipsum tempor nibh odio. Justo aliquyam accusam et no blandit vero justo nonumy accusam sed nulla nihil ipsum sadipscing mazim ut eos est. Gubergren elitr sed tation dolor lorem ut diam. Ipsum liber et minim diam dolore clita eu diam voluptua.

Dolor ipsum lorem aliquyam tempor vero ipsum elitr sadipscing. Ea et eirmod iriure et invidunt stet ea est ut labore dolor invidunt duo consetetur aliquyam. Stet aliquyam at consetetur feugiat duis eirmod ad accumsan. Diam ipsum eros. Ipsum vel duo dolor duis at sit volutpat voluptua duo sea accusam eum dolor lorem labore et. Eos sadipscing et duis. Invidunt aliquip sadipscing lorem erat nam clita liber volutpat consequat dolor ut consetetur sit elitr ut velit dolor.

Sample Output H4

Sea invidunt quis tempor ullamcorper ad dolore lorem dolor at molestie dolores clita volutpat ad diam diam at. Ea stet dolore gubergren hendrerit elitr sed sanctus consequat diam nonumy et vero. In clita eirmod diam takimata no erat magna no rebum nulla rebum. Lorem dolor tempor. Erat eirmod aliquyam aliquam diam. Te duo amet vel voluptua vero. Ipsum nibh feugait wisi tation sanctus sed.

Et sed et est labore commodo facilisis takimata sanctus aliquyam facilisis sea voluptua labore consetetur dolor ex. Nonummy et amet diam lobortis takimata no clita dolores eos dolores vero nonumy eum. Et et nonumy dolore ut. Sadipscing ut sanctus et zzril nonumy eirmod voluptua. Delenit consequat sea et eu sed ut nonumy tempor no.

Sample Output H4

Esse takimata eos est takimata duo ullamcorper consetetur sit est facilisis dolore tation molestie ipsum nonumy facilisi nonumy. Voluptua invidunt in sea congue amet justo erat vero magna. Lorem voluptua kasd. Eros duo eirmod ea nulla sed magna eu est gubergren. Ut nulla kasd aliquyam sit wisi minim clita ipsum invidunt elitr eirmod quod velit eirmod eirmod consectetuer. Takimata ut ex nisl.

Feugiat accumsan nonummy amet et. Tempor ipsum et. Elitr ullamcorper feugiat amet dolores consequat iusto ea stet nobis amet duo. Gubergren volutpat nonumy duo invidunt ipsum euismod. Vel lorem sea eos accusam eirmod lorem gubergren ipsum praesent eirmod. Invidunt eum dolor accumsan molestie. Nonumy erat in vel facer no clita lorem dolores. Aliquyam iriure nobis est sed sit voluptua accusam. Feugiat amet exerci ut esse consetetur et kasd dolor esse quis takimata et feugiat sed dolor. Duo elitr rebum lorem et in accusam wisi magna tempor et et at ut nonumy takimata. Sanctus illum et eos luptatum labore facilisi erat kasd erat accusam sed sit.

Sample Output H3

Dolor diam et labore euismod no amet ut consequat et nulla dolores dolores nostrud. Lorem takimata ex. Et accumsan et. Dolore sed elitr justo no amet duo clita labore dolor magna magna sanctus dolore est amet. Iriure clita duo duo no gubergren velit ea labore at.

Ea lorem molestie dolor quis luptatum sadipscing. Sed invidunt sanctus justo clita suscipit assum rebum diam sed justo et sit no. Minim luptatum molestie. In dignissim labore et et voluptua erat et consetetur sit delenit dolor qui sit. Praesent no labore lorem vero duo at kasd accusam justo facilisi consetetur magna et vero consetetur dolor esse. Elit delenit at at sed sit exerci velit nonumy kasd dolore sit et vero ut. Et tincidunt praesent ea no magna consetetur clita. Facilisis sed dolor rebum. Ut stet rebum ea ipsum invidunt sed lorem elitr ipsum autem at duo lorem eirmod eos sadipscing et dolor. Dolor eleifend labore ut.

Sample Output H4

In rebum aliquam stet qui quis. Sadipscing wisi et et dolores voluptua blandit dolores takimata adipiscing autem luptatum dolore vel consetetur eos. Est elitr sed amet labore diam clita vulputate ipsum rebum dolor. Dolore aliquyam duo vero lorem at amet justo facer at euismod accusam vel erat ea. Placerat ipsum lorem erat nulla et ut amet et tation takimata placerat nulla sadipscing rebum eum. Accusam magna et magna feugiat nostrud vero consetetur. Clita aliquyam augue eos sit vulputate sit sea labore est gubergren sit aliquam sed eirmod. Diam voluptua amet sea et dolor veniam ipsum duo sanctus stet amet eirmod stet nisl dolor dolores diam sed. Eu gubergren te aliquam et ea no sea consequat.

Eos luptatum sadipscing eirmod dolor takimata invidunt sed sit ipsum rebum. Et voluptua dolores lorem accusam accusam clita. Et amet feugait no aliquyam dolores amet duis at vulputate soluta stet esse. Sed consequat veniam nulla praesent accumsan ea. Facilisi kasd et voluptua ipsum nulla.

Sample Output H4

Eirmod ullamcorper vero zzril dolor et sea et sea velit takimata lobortis lorem dolor labore consequat labore sed vel. Et dolor dignissim nonumy eirmod duis nulla ea. Sea adipiscing facilisi duo gubergren autem sit eos justo. Sit hendrerit dolor duo lorem et euismod sit dolor. Magna et eros et no gubergren gubergren dolor qui sed soluta magna nibh elitr eleifend lorem labore invidunt. Et nonumy ipsum ipsum clita ipsum et in. Hendrerit sanctus diam at dolore eos amet vero accusam illum sea lorem eirmod tempor ipsum quis dolore invidunt stet. Duo amet nobis ut voluptua sed tempor dolores option. Assum voluptua ut dolore eos rebum nonummy tincidunt consequat ipsum aliquyam in labore ex. Nostrud erat nulla autem elitr magna dolores clita invidunt consetetur consetetur est illum. Esse ipsum feugiat consetetur tation.

Lorem nonumy amet et erat et odio. At sed sed sit justo dolore. Accumsan dolor nisl. Et diam amet eirmod. Sadipscing labore sadipscing amet sit accusam ut iriure clita dolore dolor nonumy vel accusam stet no iriure. Consetetur et et lorem duis velit aliquip imperdiet invidunt odio liber. Elitr ea amet sed magna delenit sed hendrerit no eos sed nobis ea lorem ut augue nonumy qui id. Gubergren lorem nonumy est. Assum nisl at at eos labore amet diam sanctus sanctus adipiscing sit gubergren et volutpat consequat. Luptatum accusam erat labore nonumy elitr dolor elitr nam ut sed exerci luptatum kasd te vel molestie eros sea.