www.cloudformatter.com

cloudformatter format requests: 6,323,508    pages delivered: 14,378,302

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

In labore duis in esse et odio tempor luptatum exerci. Sanctus clita sed justo amet wisi et invidunt in dolor sit et et accusam facilisi eos facilisis sit. Dolores sea assum no eos lorem consetetur lorem et et takimata amet stet consequat tempor nostrud sit no rebum. Voluptua tation aliquyam iusto dolore diam no amet accusam dolor voluptua sit ut luptatum facer. Dolores ut nulla et dolor magna lorem dolores. Sea magna dolor erat sadipscing est ea sanctus clita vero eu vero dolore amet at. Erat sed ipsum gubergren sed sadipscing. Takimata consequat kasd dolores rebum amet tempor et lobortis rebum et. Dolore et tempor sed elitr.

Vero sadipscing clita magna ut. Takimata dolores facilisi elitr vel sanctus takimata sit no sit ex kasd tation vel et ullamcorper dolore. Erat erat lobortis. Sit at et diam ipsum sadipscing invidunt et amet dolores voluptua at est in enim dolore illum takimata ea. Sadipscing vero lorem adipiscing cum gubergren ut dolore quis tempor invidunt accumsan erat dolor diam. No mazim sea autem. Tempor dolor labore diam eos aliquyam eos sit lorem diam accusam ea erat stet. Odio sit hendrerit nam suscipit tempor nulla. Dolore clita dolore accusam vero feugiat vero diam. Praesent voluptua takimata soluta et elitr est sed aliquyam invidunt te sit rebum te iriure possim delenit kasd.

Sample Output H3

Clita vero quis at. Dolor accusam gubergren. Lorem amet voluptua rebum accusam ea tempor sanctus sanctus amet te et. Stet dignissim et clita sit feugait erat dolore gubergren accusam ea sea rebum eum esse duis nam duo et. Dolor aliquyam sit adipiscing et quod amet diam autem sea iriure. Imperdiet sadipscing nibh diam sanctus labore dolor amet eu doming diam clita gubergren. Sea et dolor elitr praesent aliquam magna. At et et ipsum. Tempor congue eos ut. Sed soluta delenit facer rebum id consetetur eos et dolor at euismod. Et vulputate sit dolor eos in vulputate diam eos nulla wisi gubergren consequat takimata ipsum aliquyam feugait dolor.

Amet et voluptua vero velit no elitr dolor erat ipsum aliquyam amet. Voluptua et augue dolore in at ipsum minim nulla est gubergren aliquyam. Dolore assum sed labore dolor clita justo ea eirmod iriure dolore et amet ea dolor. Facilisis velit nostrud erat lorem accusam zzril exerci. Dolores in accumsan ipsum takimata sed ut sadipscing aliquyam takimata.

Sample Output H4

Clita kasd sit ea lorem odio. Dolore iriure ut kasd sanctus justo. Labore dolore sed sea rebum eirmod commodo duis ut accusam erat dolores eos ea et sed justo sea feugait. Duo in sit ipsum. Consequat magna et no sed aliquyam erat aliquyam sanctus at duo. Sanctus elitr lorem diam elit sanctus gubergren ipsum lorem sea vulputate lorem. Et et wisi dolores soluta vulputate et voluptua consetetur eirmod sanctus.

Ipsum diam euismod tempor sadipscing consequat nobis quis rebum lorem. Clita illum est esse sit gubergren sadipscing. Voluptua kasd vulputate gubergren lorem sit laoreet et ad takimata kasd at. Rebum ipsum no illum. Dolores magna amet autem lorem nulla lorem est sanctus et invidunt. Voluptua cum takimata minim et voluptua gubergren sit laoreet at ipsum wisi eirmod facilisi. Ut et dolor odio dolor praesent nibh consetetur clita duis erat nam dolor sanctus dolore takimata. Invidunt gubergren zzril tempor dolore ipsum amet et. Aliquip dolores et quis lorem te kasd dolor et accusam sea magna et consequat.

Sample Output H4

Amet amet accusam lorem et amet nulla ex dolor facilisis sed takimata sea labore. Luptatum option et labore accumsan duo magna sadipscing ut et labore odio. Lorem dolor rebum placerat ea et facilisis commodo aliquyam ut kasd diam no nisl exerci. Dolore sea consectetuer sit lorem quis minim. Invidunt voluptua at quod ut. Dolor vero tincidunt dolores liber diam zzril est.

Laoreet est accusam. Dolore consetetur et et clita erat ut dolores vulputate liber et facilisi at takimata sanctus vulputate vero et. Nonummy diam assum luptatum no dolor. Consetetur autem et. Eum feugiat diam blandit at elitr eros amet consectetuer no.

Sample Output H3

Tempor duo nulla dolor blandit sea et invidunt et sea labore sadipscing sed. Sanctus diam erat magna vero at et dolores clita diam duo elitr et vel rebum consectetuer. Autem quis gubergren nobis autem luptatum lorem sit dignissim nonumy aliquyam sed consectetuer. Et hendrerit amet aliquyam magna amet aliquip duo sadipscing no accusam. Amet congue veniam voluptua ipsum. Labore takimata lobortis dolor magna iriure enim exerci elitr justo aliquip erat sed at amet vel. Consequat tempor commodo veniam diam duo amet ad sit eum sed labore ut illum clita voluptua diam. Rebum consetetur diam kasd et dolore stet feugait sed lorem rebum amet amet. Sit gubergren erat nonumy sit dolore tempor assum suscipit volutpat aliquyam ea. Vero consequat ut et ipsum amet cum dolore ea. Erat dolor justo ea eirmod accusam nonummy blandit et amet eu diam stet lorem vero voluptua no.

Lorem et eu dolor kasd nonumy sea. Takimata kasd accusam sed ipsum ut amet voluptua invidunt. Magna lorem duo diam dolores magna ea. Kasd ut clita duo voluptua invidunt duo elitr eirmod duo est duo sea te magna placerat nonumy. Clita suscipit dolore eum dolor lorem. Diam et accusam vero diam no sit. Dolores duis soluta ea magna invidunt esse voluptua est consequat dolore accusam. Et ut dolor. Eirmod kasd justo et clita ea. Rebum dolore volutpat ipsum erat duo sanctus diam.

Sample Output H4

Diam rebum dolor. Sit odio sit diam voluptua at molestie sed lorem commodo sit ipsum congue nonumy rebum. Stet est diam voluptua. Sadipscing ipsum adipiscing autem eirmod aliquyam ipsum dolores invidunt qui placerat est assum invidunt vero. Vero invidunt nonumy sadipscing invidunt ut et euismod. In consectetuer ea et duo ea amet et sit sea et rebum lorem labore. Nulla dolore duo et lorem ipsum gubergren dolor accumsan at tempor et takimata wisi tempor sit volutpat sanctus. Justo aliquyam tation amet duo dolores sed nisl assum erat lorem elitr. Amet consetetur nulla dolore vero et erat gubergren. Duo vulputate sit et amet hendrerit sit rebum elitr erat no nostrud. Ea eos ut illum feugiat.

Hendrerit diam in kasd voluptua suscipit stet nonumy dolore tation dolor ipsum. Nonumy nonummy et. Justo invidunt ut praesent magna aliquip consequat labore justo nonummy sed tation facer. Dolor eos sit nonumy consetetur dolor autem takimata iriure nibh augue dolor eu minim vero. Stet lorem diam qui veniam nonummy dolore duis ea cum blandit. Facilisi vero ut option diam invidunt amet aliquyam dolor sit velit zzril amet feugiat invidunt tempor est. Eirmod est euismod laoreet et hendrerit sit invidunt at diam hendrerit ea vero ullamcorper duo.

Sample Output H4

Et iriure lorem veniam rebum magna amet quis clita. Euismod duo et diam sed nulla. Veniam vel in et sed gubergren eos est takimata erat esse. Voluptua voluptua magna ea dolore lorem diam. Dolor quod vero illum et. Diam et dolores. Lorem dolore te veniam consetetur accusam clita illum sed ut. Takimata nam magna at no.

Amet wisi sit. Duo dolor duis et eos lorem lorem accusam dignissim facilisi tempor aliquyam aliquyam diam sed dolor dolore vel vero. At sed sanctus est invidunt erat no sed ut ipsum ea labore autem. Magna accumsan aliquyam. Et takimata amet takimata eu. Tempor gubergren sed ut ex eirmod gubergren sit amet blandit nibh voluptua sit stet ut. Nibh nulla invidunt esse sea lorem. Dolores voluptua amet sit gubergren sed dolores. Dolores sed at ut iriure adipiscing vero molestie sit magna. Eos in sit est sed esse molestie. Autem at et gubergren et labore et facilisi no tempor.

More Sample Output H2

Lobortis nonumy invidunt sit dolore duo sed exerci eirmod odio ipsum nonumy lorem sed magna sed. Accusam laoreet ea eos elit velit takimata iriure volutpat quod sit et diam ea aliquam no. Sed minim in est eos gubergren sea dolor kasd vulputate vel enim. At lorem dolore euismod eirmod zzril. Diam sed magna kasd vel. Mazim diam hendrerit ipsum sanctus accusam rebum in diam amet justo kasd ipsum vero. No et ea lobortis diam odio dolore ipsum lorem.

Justo nisl ipsum stet nonumy eum eirmod eos. Rebum sea clita labore ea justo ipsum tation dolore lorem rebum invidunt eirmod dolore dolores takimata. Eirmod lobortis duis at eu ut. Rebum invidunt et aliquyam vero clita et takimata vero nostrud sadipscing dolor sed dolore sadipscing no soluta amet. Est duo et magna est erat sanctus ea mazim. Et kasd lorem et dolor possim erat. Takimata et eos tation facilisi lorem consequat eirmod ea adipiscing. Amet congue gubergren congue dolor erat ipsum. Liber at ipsum duo.

Sample Output H3

Diam quis ipsum exerci clita consetetur quis rebum aliquam dolor erat sea ad erat eos dolor et et aliquyam. Nihil et stet stet ullamcorper sadipscing adipiscing autem iriure consectetuer gubergren autem et facilisis elit. Amet aliquyam dolore et sit magna aliquyam et. Magna labore dolor duo tempor no nobis erat feugait ut kasd diam. Dolor qui te clita ipsum invidunt vel rebum nobis labore lorem accusam dolor ut amet ea. Feugiat tempor tempor clita dolore nulla dolor iriure diam vero nulla qui et diam ut sed dolore erat dolor.

Voluptua sadipscing autem takimata eos ex ipsum ut dolores eos iusto ea tempor. Accumsan hendrerit takimata justo elitr clita dolores. Feugiat no dolor ipsum takimata rebum sadipscing odio takimata elitr duo vel. Amet diam est te diam consetetur ipsum est dolores. Ipsum dolore vero kasd eirmod sea te. Duo labore tation eu et dolore. Nulla velit eos augue dolores erat zzril justo magna quis.

Sample Output H4

Eum rebum dolores ipsum sed ea et est takimata dolor tempor nonumy. Magna dolore duis dolor erat illum sit at nonumy ipsum nonumy vero gubergren sit. Vero quis consetetur kasd. Eirmod ut feugiat dolor justo magna ea dolor euismod ea et. Ut gubergren qui diam et vulputate dolor aliquyam et id lorem. Imperdiet erat et rebum. Magna delenit no et eu elitr sit aliquam autem sed. Qui dolore justo suscipit sed. Accumsan sadipscing ea consetetur sea et no.

Stet magna amet eos diam kasd wisi velit. Ut et eleifend velit at nulla stet. Vero diam eu ipsum voluptua nonummy et consetetur et diam lorem diam suscipit feugait. Qui diam erat lorem et at ullamcorper tempor amet hendrerit ullamcorper velit sit dolor eirmod duo takimata dolore. Sadipscing est takimata stet tempor. Vel at duo ut ut diam invidunt voluptua et dolor gubergren sit sadipscing rebum sed diam. Diam tation sit sanctus accusam tincidunt duo no sadipscing voluptua duo eleifend nonumy. Velit tation aliquyam. Zzril assum ipsum amet vero accumsan nihil stet aliquyam duis eos consequat consectetuer at tempor at ipsum iriure. Rebum duis sit ea voluptua nulla dolore sit.

Sample Output H4

Labore volutpat ipsum rebum kasd elit consectetuer. Sanctus invidunt gubergren sed at et odio invidunt in tempor sed nostrud lorem elit. Eos sit dolores veniam invidunt sea eos elitr sea ipsum voluptua lorem diam molestie et ipsum dolore. Sed ut no hendrerit ut elitr nihil magna nonumy elit duis diam magna et invidunt mazim. Minim lorem et ea tempor hendrerit sed dignissim vero magna duo doming. Nulla sit no facilisis voluptua augue sit magna et at dolores sanctus accusam. Sit dolor accusam elitr ut ut sea ut tempor lorem sanctus diam wisi feugiat sanctus eu sed facilisis.

At amet sit tincidunt takimata ullamcorper est ipsum iriure et amet sea. Ea magna eos ut nonumy dolore sadipscing voluptua dolore. Diam et ut et sanctus at est ipsum ullamcorper accusam. Lorem qui aliquyam. Ea augue eum sadipscing magna consetetur option consequat at sit zzril praesent. Eirmod kasd gubergren. Sadipscing nulla et suscipit et justo amet nonumy sed nostrud sanctus nam ea ea erat. Tempor lorem accusam ea gubergren sit consequat erat facer.

Sample Output H3

Vero elitr feugiat no dolor gubergren amet sanctus est sea kasd ipsum sea clita dolor nonumy dolores stet sed. Justo ipsum sea diam ut sed amet. At consetetur sadipscing. Veniam sed consetetur. Vel cum commodo iriure. Feugait facilisis consequat. Euismod feugiat soluta duis stet cum ut duis accusam dolor accusam ut assum vero justo ea lorem lorem. Ea sit consequat dolores vulputate.

Eu ex no takimata erat diam hendrerit rebum euismod erat clita dolor stet no sit eirmod lorem sadipscing. Veniam sadipscing euismod ipsum nonummy consetetur gubergren zzril et erat lorem rebum. Est justo et vero et rebum justo consetetur iriure vulputate magna feugait dolore labore tempor justo rebum sed. Eos et consetetur amet ipsum accusam praesent consectetuer invidunt aliquyam duo ut nonumy rebum dolor vel consetetur in sed. Ut at feugiat. Vulputate commodo ut gubergren.

Sample Output H4

Sit sea ea accumsan sed amet eum et duo invidunt dolor ex et eu at est et gubergren. Suscipit tation magna ut consequat et dolore liber sadipscing magna eos adipiscing sea te kasd ut. Nonumy ea placerat ipsum dolor et accusam at gubergren. Elitr amet takimata et eos commodo ut eos illum ea ut nibh accusam gubergren minim tempor. Duis ipsum stet diam et magna ut.

Tempor no lobortis et diam kasd te kasd diam et dolor ipsum sit labore eos sanctus ea. Est id sed consectetuer consequat eu cum no accusam magna stet et consequat eos amet dolor amet voluptua ullamcorper. Aliquip minim justo diam lorem dolor dolore et sit nisl nonumy eum facer amet aliquyam invidunt eirmod ipsum. At dolores ut diam dolor eos ea sea aliquyam molestie accusam eos dolor molestie eirmod sit. At consequat in et erat amet consectetuer amet sed ullamcorper. Nonumy elitr sadipscing vel possim sit illum nonumy labore aliquam no diam nisl.

Sample Output H4

Ut sed ipsum veniam gubergren ipsum consetetur vulputate ipsum diam kasd sed at accusam eirmod. Dolor et et nonumy tempor sed takimata dolor imperdiet ipsum gubergren et eirmod et. Takimata iriure at nam sed adipiscing lorem duis sit erat tincidunt amet sit vero. Et takimata dolor magna tation lorem dolore accusam invidunt. Blandit delenit ea sea consetetur consequat option eu dolore erat eu dolor labore feugiat et accusam praesent hendrerit consetetur. Aliquyam sanctus ullamcorper amet magna molestie blandit nibh vero erat. Accusam eirmod ut aliquam et molestie hendrerit duo. At nostrud amet sanctus sed justo et.

Tempor lobortis diam nulla magna tempor. Est ea diam at sed eos diam ipsum stet eum ea kasd consetetur. Invidunt at at stet nam ipsum ex blandit eos kasd rebum. Consequat placerat accumsan wisi nostrud amet stet et rebum et feugiat. Ipsum dolor laoreet sit sadipscing. Diam kasd eos gubergren amet sed sit magna duo amet vero tempor elitr ea nibh. Clita luptatum clita clita et luptatum nulla dolor sadipscing dolor erat augue sadipscing. Autem et at est in sit dolore in dolor. Ut magna et tempor congue voluptua feugiat ea lorem feugiat consequat est et eleifend gubergren odio. Est vero amet duo accusam et vel et hendrerit sit tempor. Eirmod stet dolore voluptua et sadipscing odio enim et nonumy et takimata stet consetetur.