www.cloudformatter.com

cloudformatter format requests: 6,324,857    pages delivered: 14,380,817

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

Aliquam dolor et doming lorem ipsum ea elitr sanctus magna. Amet sadipscing dolore accusam elitr dolor sit et ea dolore dolore magna ea et et voluptua takimata mazim at. Voluptua sed blandit accusam sit nulla accumsan zzril. Rebum eros kasd ut facilisis vulputate liber ut no consequat praesent nobis blandit ipsum. Lorem magna aliquyam clita ea voluptua clita amet magna consetetur sea elitr. Sit est stet sed elit sea dolores nonumy consectetuer sit lorem. Accusam sed consequat accusam voluptua at elitr.

Labore lorem no imperdiet illum ipsum dolore at labore elitr erat rebum clita et lorem suscipit in. Iriure dolor duo dolor ea invidunt ipsum amet dolore et aliquyam tincidunt qui sit ipsum eos amet magna erat. Sit lorem ea ad dolores est luptatum sed sea kasd. Dolor invidunt est vel tempor consetetur dolore labore eos sadipscing possim est dolor sit. Sanctus tempor gubergren stet dolores.

Sample Output H3

Nonumy at lorem. Laoreet dolor rebum in at invidunt et diam et molestie duis ipsum et lorem duo ipsum. Takimata at enim stet enim vero dolores eu justo sit amet ut gubergren sit. Sed amet vulputate. Possim ut amet lorem duo clita stet sed takimata duo consetetur dolor. Et aliquam aliquip illum vero voluptua lorem clita. No takimata diam.

Et in ut duis ipsum consectetuer dolor sit dolor dignissim et dolores sit. Labore tation clita at aliquam dolor te. Ad aliquyam duo rebum sit lorem mazim voluptua no stet takimata. Diam illum eos ut nulla clita facilisis justo sed eum stet. Accusam labore diam est dolor et hendrerit clita. Invidunt sed eos nibh labore eum. Et magna at nibh no qui wisi praesent assum. Sed sea erat dolor aliquyam dolore dolores clita sadipscing commodo facilisis eirmod. Magna vero duis. Eirmod ullamcorper enim voluptua sit amet dolor minim. Aliquyam voluptua zzril dignissim molestie sed dolores.

Sample Output H4

Dolore rebum dolor sanctus erat takimata dolor feugait erat elitr ut placerat id nobis nulla diam nonummy clita. Commodo dolore sea et voluptua. Clita kasd eum lobortis ea ipsum est ullamcorper voluptua elitr labore. Dolore sed tation hendrerit sanctus tempor est rebum dolore iriure dolor labore nibh. Et sit sadipscing facilisi eos sed dolore amet et amet liber sit ea sadipscing aliquyam ut dolore ullamcorper. Mazim id labore erat est voluptua accusam dolores magna takimata ad dolor clita. Ipsum ea exerci. Et justo et amet dolores kasd aliquyam eirmod est et clita.

Clita aliquyam liber eirmod sit et amet nonumy minim ipsum quod sed ut et eos no eos. Erat accusam placerat autem ipsum accusam augue sed vero ipsum dolores velit duis est eum sed ut. Sed diam tempor luptatum et vero et dolores dolore ipsum no voluptua. Rebum illum gubergren dolore nonumy accumsan dolore sea esse sea takimata no. Est diam diam eirmod sed dolor vel kasd cum et sea sit volutpat dolores voluptua. Et no duo dolor et. Sea nonumy et esse dolore vero lorem vulputate sit erat et.

Sample Output H4

Sit congue sed amet stet dolor wisi te lorem dolor ut clita sea et aliquam stet lorem hendrerit veniam. Magna duo commodo lorem elitr in vero takimata erat luptatum erat et dolor dolor. Ut elitr sed est ut facilisis. Sadipscing erat praesent magna rebum dolor. Exerci dolor nostrud ea et eirmod diam sit nonummy dolor. Et lobortis aliquyam dolore takimata vel rebum sea elitr sit lorem praesent amet. Eos ipsum at voluptua dolore. Elit justo justo dolor delenit diam nonumy sed no lorem vero dolor no ipsum clita.

Erat lorem dolores at. Tincidunt at sed ea voluptua. Et invidunt nisl. Congue ea takimata praesent justo facilisis labore justo magna ut dolor eirmod eirmod vero accusam. Aliquyam sanctus lorem. Duis et clita te nulla magna.

Sample Output H3

Clita magna volutpat et sit lorem praesent et euismod erat duo et. Et qui nonumy ut possim ipsum et dolor erat consetetur diam dolore magna clita. Invidunt ipsum tempor tempor et hendrerit laoreet et vulputate facilisis. Nonumy euismod sanctus dolore amet nisl labore lobortis et et et elitr sed. Duis luptatum et accusam tempor eros clita. Ut rebum adipiscing elitr magna invidunt lorem velit esse accusam eos duo magna in nostrud exerci consetetur.

Justo nulla invidunt et est sit dolore ullamcorper eos tempor facilisis kasd ipsum sed ipsum in. Est in et elit consequat doming ut dolor ipsum eos luptatum qui sea odio sed et erat elitr. Dolore aliquyam et nonumy at augue magna sit vero sea et. Sed stet et et. Voluptua consectetuer lorem ut quod magna dignissim vero sea ipsum et liber. Et hendrerit dolores duis lobortis rebum rebum ipsum ut ut wisi labore. Et consequat aliquyam hendrerit et tation. Sea autem dolor eos hendrerit.

Sample Output H4

Est voluptua gubergren no et vulputate eos sed dolor quod duis. Dolor nulla et et imperdiet justo ut hendrerit nisl. Sadipscing molestie sanctus diam iusto dolore erat kasd sadipscing sea labore veniam no elitr duo diam nisl. Clita et tempor sanctus nonumy duo elitr sed molestie vero ea. Aliquip wisi gubergren dolores aliquyam quis iusto voluptua justo clita lorem. Option hendrerit dolor odio amet aliquyam sanctus magna labore kasd ipsum esse. Aliquip rebum lorem eu. Nonumy autem quis exerci et duo justo et clita justo. Feugiat at ex nulla vel sanctus magna possim et et facilisi sit. Et tempor duo eos et quod.

Tempor et eos tincidunt at elitr est erat duo elitr duo ut dolor sanctus invidunt dolor no et rebum. Dolor clita diam dolore magna vero eirmod amet amet. Gubergren diam sea eirmod sit est nulla diam. Ea gubergren kasd ipsum duo tincidunt. Amet rebum sed et rebum amet.

Sample Output H4

Eirmod ea dolore sed sadipscing et aliquam diam at accusam magna rebum consetetur tincidunt sanctus. Hendrerit duo diam lorem. Invidunt no vulputate eros eu at sed erat. Praesent feugait mazim elitr amet justo mazim ipsum dolor doming. Dolore nobis dolore velit tation ipsum gubergren sed nostrud zzril nonumy erat iriure in invidunt est nonumy. Sed vero illum ut rebum dolore at accusam dolor kasd invidunt takimata dolor odio.

Nonumy ipsum sed lorem et. Et et clita ea. Aliquyam stet ut ea et qui tempor ipsum accusam veniam erat assum erat sit lorem. Ad est ipsum clita facilisi sit. Qui dolore diam volutpat dolores. No autem kasd ipsum et sed nonummy lorem dolor.

More Sample Output H2

Adipiscing et dolor sadipscing nibh zzril enim no nulla. Duo sit gubergren ipsum zzril quis nonumy clita et sanctus labore justo amet erat dolores dolores diam. Duo voluptua dolores lorem et consectetuer stet eirmod sadipscing minim at sit te exerci molestie duis at. Dolor amet erat vel molestie in aliquyam luptatum liber aliquyam ipsum rebum diam diam sadipscing magna. Et takimata rebum. Autem diam amet dignissim sadipscing esse ea nonumy diam et. Eirmod rebum sit amet vel tempor vero et invidunt ut diam kasd.

Hendrerit magna takimata at volutpat et. Gubergren nisl sanctus est eos kasd sed justo. Stet ea diam erat vero sit sanctus ipsum eos est nulla dolore suscipit clita erat. Voluptua et lorem euismod takimata accusam dignissim. Illum nonummy elitr euismod sed vero feugait erat sanctus voluptua stet clita blandit accusam nonumy sadipscing. No dolore amet. Lobortis tempor nonumy sanctus erat dolor nonumy et clita at dolores eu ut sit. Lorem praesent in dolores dolore dolores at dolore ipsum iusto at justo dolore. Nam dolor justo hendrerit amet clita at. Sanctus kasd facilisis aliquip diam. Qui vel sit ipsum amet mazim eos et justo duo assum.

Sample Output H3

Iusto aliquyam illum est erat takimata diam est sadipscing dolore diam volutpat. At sanctus sit. Sed elitr dolore nibh. Commodo nonumy eos in. Eirmod invidunt erat sit amet et vel qui dolores odio et ipsum commodo dolor. Amet labore kasd amet sea volutpat ut. Justo diam consequat voluptua ipsum nulla ipsum aliquyam dolore nisl dolore eirmod tempor ad illum diam sed est. Hendrerit euismod justo exerci dolore lorem accusam nisl dolor erat vulputate et sed laoreet.

At et amet gubergren kasd sit quis diam consetetur ad sea. Magna dolor stet et sanctus sed amet praesent lorem labore ut dolore magna diam sit duo eros. Diam molestie iriure nonumy takimata consequat erat autem nonumy dolor ea amet et amet sed duo odio. In blandit gubergren vel vero minim tincidunt vero ipsum esse aliquyam accusam facilisi sadipscing. Facilisi laoreet eos nibh elitr enim. Sadipscing eu dolore consetetur soluta est sit diam. Stet consequat minim gubergren sea dolore. Takimata erat consequat eu sit no et exerci amet lorem amet voluptua nonumy duo. Nibh labore takimata et aliquyam feugiat consequat gubergren et elitr doming et dolores justo voluptua dolore in amet. Et luptatum nulla dolore blandit soluta rebum elitr lorem clita no et consequat ipsum. Sanctus dolor ipsum amet.

Sample Output H4

Elitr et stet diam ut eros lorem accusam justo. Ut magna diam dolor sed invidunt. Tation eos et takimata. Lorem veniam duo at magna diam sit erat nihil clita lorem praesent in. Ea ut sit voluptua dolore ipsum magna eirmod. Gubergren amet sit erat dolor amet sit diam stet vero.

Magna et augue. Justo consetetur diam amet vero ea vero erat te accusam. Clita dolor dolor est lorem kasd duo takimata erat rebum eros placerat gubergren praesent labore. Feugiat illum accumsan consetetur tempor et lorem consetetur gubergren diam diam aliquam. Nisl sed eos et volutpat ipsum erat dolore ipsum erat kasd nobis rebum illum. Nonummy magna placerat diam diam ipsum facilisis iriure ut voluptua magna dolor minim no sit. Et duo vel elitr et justo suscipit feugiat eos erat sanctus at clita stet clita sed eu. Vel tation ad et dolore magna elitr eum tempor takimata dolor takimata duis accusam in placerat at. Dolor gubergren consetetur diam kasd gubergren aliquyam invidunt elitr labore dolore eos amet gubergren consequat amet erat. Vel lorem tempor eu amet amet magna. Dolore at et cum adipiscing nonumy invidunt consetetur est.

Sample Output H4

Consequat eum odio nonumy consetetur tation esse. Duis dolor zzril vero dolores sadipscing. No sed dolor duo gubergren lorem amet sadipscing sit lorem rebum nonumy iusto clita tempor accusam kasd sea voluptua. Diam eros kasd sadipscing sadipscing clita et amet kasd. Dolor est quis diam. Sed ipsum tempor stet nulla diam ipsum consetetur duo delenit wisi et ut minim. Justo feugiat et dolores voluptua dolores dolores tempor id dolore praesent delenit dolore kasd duo no dolor. Dolore aliquyam sadipscing vero. Invidunt justo nulla amet sadipscing aliquyam feugait eum magna tempor gubergren nulla in autem consetetur accusam stet justo. Veniam ea takimata amet accusam.

Invidunt est voluptua ipsum eu sadipscing ipsum erat diam. Duo dolores vero vero labore esse volutpat hendrerit eos. Augue kasd lorem et justo et. Clita lorem erat quod sanctus dolores facilisis diam eirmod aliquip kasd diam dolores. Et feugait stet molestie dolor lorem accusam nonummy.

Sample Output H3

Ut ipsum ipsum tempor ad dolor takimata sit takimata ad invidunt justo euismod sanctus sit enim. Et nulla magna vero ipsum est labore hendrerit invidunt diam ex est. Eros lorem ut vero sed sea magna assum sit ipsum autem dolore et iusto eum dignissim. Sea sanctus ipsum magna. Clita enim erat et sadipscing justo sit tempor. Tincidunt aliquyam aliquyam invidunt luptatum elit suscipit ea nonumy velit sed odio duis dolores rebum. Dolor ullamcorper sanctus aliquyam ex feugait takimata erat ipsum mazim ipsum voluptua at eu. Sadipscing justo sed vero magna tempor consectetuer sit invidunt consetetur consetetur et clita lorem dolores labore ex.

Sed adipiscing nonumy tempor eum aliquyam eos qui dolore. Diam at diam elitr invidunt lobortis consequat erat sadipscing gubergren ea commodo feugait lorem amet sanctus in. Elitr invidunt sea magna hendrerit veniam mazim duis lorem dolore sit sed sea dolores blandit esse. Et lorem et ullamcorper blandit amet adipiscing sea sit minim sea accusam dignissim sadipscing accumsan eirmod. Feugiat sit labore kasd sit dolor wisi ullamcorper amet lobortis. Duis at lorem ipsum tempor aliquyam aliquyam consequat duo iusto placerat. Voluptua stet sed amet labore tincidunt adipiscing diam possim. Ad takimata odio ipsum erat rebum takimata elitr dolor erat amet sanctus suscipit exerci volutpat. Ut dolore stet ipsum et est tempor kasd sea lorem gubergren. Sit magna labore ea invidunt nonummy nibh at sed et. Ea nulla voluptua at vero at accusam et ipsum dolor hendrerit quod gubergren voluptua amet invidunt lobortis et erat.

Sample Output H4

Lorem eos euismod. Ut ipsum justo dolore magna. Eos ut dolore autem eos consetetur aliquyam stet. Tempor iriure diam nonumy elitr takimata vero accusam et at. Eos dolore tempor et clita et justo kasd nonumy amet dolor at kasd velit amet elitr lorem clita augue.

Nam sadipscing te lorem at labore dolore nulla. No illum vero gubergren ipsum ea dolor. Odio magna hendrerit et vero diam duo diam lorem. Luptatum ea accusam diam dolor ea clita et nonumy. Adipiscing lorem sea invidunt nobis amet diam justo volutpat sanctus clita amet amet elit vulputate. Aliquam et eu dolor sed et. Blandit duo stet et. Aliquyam dolor luptatum ipsum quis ut justo eu accumsan et tempor aliquyam tempor amet accusam sadipscing ipsum. Et est eirmod sanctus quis velit justo. Dolor ut clita tation duo nonumy est et eirmod et vulputate illum ipsum gubergren nulla.

Sample Output H4

Duis est dolores dolores gubergren consetetur lorem est magna sadipscing tempor sadipscing vero aliquyam voluptua dolores sed et ea. Invidunt lorem rebum sadipscing duis kasd. Diam delenit dolor no. Erat dolore et ea ut dolor sed at rebum. Dolore erat justo rebum rebum elitr stet ut sed voluptua eu nonumy eos nulla takimata sadipscing. Dolores nonumy elit laoreet stet labore kasd delenit elitr rebum ut magna eos elitr sadipscing ipsum. Aliquip ea vero. Nihil takimata ut erat invidunt et sit diam gubergren sadipscing sed elitr et. Sit soluta doming lobortis enim elitr congue lobortis. Accusam ipsum aliquyam gubergren. Volutpat eos elitr et justo et et justo takimata.

Eleifend duis accumsan dolore est option nonumy in ut sed. Eos sadipscing lorem et et nonumy diam ipsum gubergren labore dolor diam dolor clita dolores diam eos. Tempor takimata doming lorem amet rebum eros nonumy euismod at facer stet sed ipsum. Erat justo et duo. Consetetur magna clita iusto. Accumsan et et dolor sit esse consetetur et. Eos diam dolore vero dolor diam euismod dolore dolore ipsum clita ea clita tempor. Clita amet ea eirmod eirmod sed est nibh et.