www.cloudformatter.com

cloudformatter format requests: 6,321,127    pages delivered: 14,373,896

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

Magna ea et lorem nulla tempor autem dolore et ipsum eleifend sit duo justo et sed duis. Vero te facilisi dolore ipsum at elitr facilisis sit aliquam rebum dolor dolor dolores duis lorem tempor. Enim vero eleifend. Sed illum vero invidunt gubergren dolores nonumy. Ipsum volutpat erat nibh feugiat lorem.

Nibh sed clita invidunt ut gubergren dolores eos autem consequat nam. Et tation sadipscing. Imperdiet et illum eos takimata et at at. Congue lorem rebum qui amet justo sadipscing nulla facilisi dolor in clita ea sit. Dolores lorem gubergren et nonumy et dignissim. Clita nostrud aliquyam no. Blandit dolor dolor dolores tempor ut sea diam eirmod. Sit ea ipsum dolor eum diam aliquip in magna nostrud ipsum euismod dolor takimata sed nulla duo.

Sample Output H3

Sit consetetur rebum kasd lobortis clita dolores est eos voluptua nulla tempor elitr sed. Takimata qui aliquyam rebum sit magna gubergren illum. Rebum luptatum consetetur accusam diam. Sea et lorem ea tempor no et molestie. At voluptua ut vero luptatum aliquam dolore kasd. Molestie feugiat ullamcorper.

Zzril ut sed vel. Sit sed duo kasd duis dolore dolores facilisis et kasd iriure. Hendrerit magna et facilisi justo et sit. Ipsum dolore ullamcorper ipsum est exerci est sadipscing kasd enim aliquyam sit molestie invidunt vulputate dolore eos zzril velit. Ipsum sanctus dolores wisi laoreet feugait sea tincidunt eum dolore dolore dolore feugait. Dolores at cum et sanctus takimata consetetur eum dolores diam nulla dolor.

Sample Output H4

Elitr laoreet ipsum justo ut et et mazim iusto tempor id sit dolore autem amet delenit. Praesent tempor sea. Duo magna ut ullamcorper sed diam eos eirmod sed eirmod voluptua sit clita eirmod dolores erat takimata sit. Vero hendrerit blandit feugiat amet gubergren diam stet quod. Duo rebum hendrerit ea elitr takimata iriure amet autem takimata ea aliquyam cum consetetur amet duo facilisis invidunt. Et labore amet est et vel ea lorem eirmod sea rebum sit eos aliquyam. Gubergren vero duo et. Euismod takimata erat no in invidunt facilisis nonumy vulputate magna voluptua dolore sed ea kasd ipsum cum tincidunt voluptua. Te sea sit tincidunt duis in dolor sit wisi labore.

Nulla et eos voluptua. Velit dolores erat sed kasd gubergren. Magna et consetetur no eirmod consequat elitr ea in blandit feugiat praesent consetetur et. Dolor sadipscing at nonumy lorem nonumy voluptua justo at et molestie commodo aliquyam at sit diam amet ipsum amet. Ea magna ut feugiat justo elitr aliquyam tempor stet nisl sed. Lorem facilisis accusam molestie dolor et tempor stet est dolore justo ut ipsum ipsum sit possim gubergren.

Sample Output H4

Illum lorem eos amet molestie sed consetetur accusam stet no dolore takimata ipsum sit. Consetetur dolor est gubergren eirmod erat eu dolore elitr soluta kasd ut euismod ea. Diam volutpat ut clita in gubergren adipiscing wisi tempor enim sea ut. Tempor sanctus at kasd dolor qui no amet amet consectetuer vero. Justo et option veniam ut velit sit suscipit dolores et labore esse vero facilisis invidunt adipiscing. Invidunt augue aliquyam nulla est quis ut eros quis sit no takimata accusam. Magna te stet dolores sit magna sea dolore in sanctus rebum sea labore et eirmod iriure et amet. Sadipscing congue et duis iusto duo stet quis labore no. Elitr delenit sit erat dolor sed eum clita.

Sadipscing est eirmod ut no ipsum dolore delenit nonumy et. Quod erat diam quis te et vero et aliquyam dolore ut eos ipsum ea consequat. Nonumy ipsum gubergren amet sed aliquyam dolor. Consetetur gubergren nonumy nulla aliquam sed ea ad. Amet ut lobortis ut in nulla consetetur eos. Dolore dolor ut dolore consequat accumsan aliquyam ipsum sed.

Sample Output H3

Kasd et facilisis dolore nibh et kasd consetetur dolor eos eirmod accusam dolor aliquam laoreet gubergren. Iriure sit sit. Lobortis autem sed illum elit clita adipiscing ipsum eum dolores vel est ea amet minim. Vero eros et magna amet voluptua. Velit voluptua elitr illum amet facilisis amet facilisis eos ea erat sit ut et.

Erat aliquyam nulla justo rebum. Et vel at stet enim facilisi justo dolor ea. Vel esse aliquam sea dolor magna velit et clita sed clita diam aliquyam. Diam rebum no autem consectetuer ut accusam diam dolores. Sed eu voluptua dolore clita. Takimata diam sit option diam wisi amet velit accusam ipsum clita takimata facilisi eos no elitr est. Justo amet dolor lorem duis ipsum sed in duo et. Et te tempor no ea soluta invidunt diam velit ut feugait ipsum est sit.

Sample Output H4

Dolor dolor id. Diam dolore dolor stet feugiat magna ipsum lorem volutpat voluptua eu consequat. Et iriure amet takimata ipsum lorem accusam invidunt ipsum amet dolores kasd dolor hendrerit sea luptatum facilisis. Eos iriure et kasd lorem takimata iriure dolor sanctus lorem accusam eirmod ut dolor sadipscing invidunt clita sit lorem. Lorem dolor eirmod sit sit kasd dolore ipsum sed in nonumy eu erat sed consetetur no eum kasd.

Et qui volutpat. Nisl autem dolor ipsum. Et aliquyam takimata praesent gubergren luptatum voluptua eirmod dolore no tempor nisl in duo duo et eos gubergren sanctus. Labore eos zzril justo gubergren luptatum facilisis aliquyam dolor ad invidunt. Eos labore duis nulla nonumy magna duo exerci labore est congue sanctus nostrud suscipit sadipscing. Option accusam et et aliquip et. Dolore eirmod duo facilisi in invidunt aliquyam diam sit dolor accumsan aliquyam suscipit diam erat magna et. Ipsum consetetur erat at no stet ut et clita amet nibh et clita vero tempor.

Sample Output H4

Takimata lorem at sadipscing laoreet tempor ea ea ea sit at takimata dolore accusam diam est eirmod dolores id. Dolor sed est duo tempor vero aliquyam et rebum euismod magna consetetur ex diam et autem duo. Lorem takimata rebum gubergren consetetur stet lorem labore justo sit vel et commodo eros ut diam dolore ut lorem. Sanctus commodo sea duis amet est aliquip aliquyam ipsum et sit stet invidunt sit consequat eirmod diam elitr sit. Ipsum accusam magna. Vel dolore magna nonumy.

Sed ut dolor. Dolor amet lorem eirmod no eos diam duo nulla sit consetetur eos eu magna vero in iriure diam. Takimata tempor ut at eos duo duo diam lorem ad magna magna et et at in. Eos diam et eos dolore. Diam ut diam nulla et et magna ipsum commodo consequat vel lobortis sea suscipit. Elitr ea elitr. Sed est ea illum. Diam ex et voluptua.

More Sample Output H2

Eos lorem vero et amet labore et sed veniam sanctus. Enim sit iriure. Feugait dolores dolore voluptua ad eum sed sed suscipit ipsum voluptua elitr clita illum. Erat gubergren dolor dolor nihil volutpat lorem. Enim elitr gubergren. Sit diam consetetur no vel nonumy doming dolore consectetuer vulputate erat ipsum sea dolore vero diam lobortis. Elitr accusam id kasd dolore vero stet lorem ipsum ut no sadipscing vulputate ut nisl sanctus sed dolor.

Dolore ipsum esse. Dolores esse autem nisl diam wisi sadipscing adipiscing in. Amet eirmod duis dolores et et dolor erat sed et vero nulla lorem. Sea consequat ipsum gubergren at wisi nibh eirmod dignissim takimata consetetur eos amet vero. Eleifend quis dolor ut sadipscing et et in duis ipsum. Tation amet clita et stet sadipscing blandit diam sadipscing lorem clita dolore liber eos dolores kasd justo. Diam elitr no dignissim consequat no labore gubergren et. Diam nulla elitr feugait stet dolores est sadipscing diam amet duis dignissim vero sea labore quis eirmod sed. Option voluptua tation zzril eos et sanctus.

Sample Output H3

Sit invidunt nostrud ipsum. Exerci sea amet kasd ipsum qui lorem duo eos labore vero elitr et dolor sit lorem et. Eos justo esse labore assum at et tempor sea ut lorem sadipscing sed lobortis gubergren illum ea. Dolore lorem justo nonummy invidunt illum dolore. Et magna invidunt tempor illum dignissim sed elit tempor ut aliquam. Et eos sed ut voluptua clita justo aliquyam sadipscing. Dolore sea invidunt et dignissim mazim amet augue dolore. Praesent et tempor nonumy sit possim et ipsum et et dolores sea clita sea sea dolore vero. Luptatum consectetuer rebum sanctus sed tempor ipsum erat amet gubergren ea tempor dolor vero justo clita sanctus facilisi invidunt.

Voluptua lorem est rebum consectetuer dolore eos sit dolor ea consetetur duo ea. Wisi sed sit lobortis lorem. Et nonumy nibh vel aliquyam nonumy tempor diam. Est duo laoreet accusam wisi eu et takimata sea. Molestie vero commodo ipsum amet. Invidunt stet kasd dolore molestie dolor eirmod. Dolore kasd et cum elitr dolores sed. Labore diam vero ea vulputate imperdiet labore sit amet hendrerit lorem tation sed aliquip accusam volutpat. Eros kasd ea ea eirmod labore quis stet ipsum kasd sed dolor.

Sample Output H4

Diam et diam sed nonumy amet dolore lorem suscipit erat diam nulla consetetur dolore doming nonumy consetetur accusam amet. Minim takimata at stet quis tincidunt stet amet amet esse vero est sed eos rebum nonumy nulla. Aliquip duo eirmod dolor et liber tempor kasd nonumy ut dolor ea dolores invidunt. Dolore justo kasd sit diam. Sit velit in dignissim eos commodo tincidunt amet facer voluptua takimata.

Esse ea sit at liber. Voluptua blandit assum sed dolor. Blandit eros sed feugiat est luptatum elitr sit. Est zzril erat consequat rebum. Eos nonummy praesent gubergren. Lorem lorem wisi volutpat odio gubergren te diam sit in et no eros tempor iusto voluptua. Accusam esse consetetur magna elit ipsum et consequat amet eos elitr et at.

Sample Output H4

Justo eos ipsum. Kasd in sanctus amet accusam ea dolore et facilisis. Molestie elit te sed ipsum vero et ea ipsum et sit dolore et erat odio. Kasd iusto dignissim aliquip diam ex lobortis ipsum ea hendrerit rebum possim takimata dolores. Aliquyam assum gubergren erat vulputate magna. Aliquyam lorem eirmod tempor at laoreet et clita in et at cum lorem sit invidunt no labore labore diam. Clita sanctus no dolore nulla dolore kasd et euismod tincidunt. Aliquyam suscipit eos sea nam dolore lorem in magna ipsum lorem dolor iriure. Ipsum clita consequat ad eu facilisis dolor delenit elitr voluptua suscipit nonumy amet. Consetetur facilisis tation duo ut aliquyam. Ipsum magna et aliquyam sea feugiat elitr amet gubergren no est ea magna magna justo nonumy.

Lorem sed sit dolor sit labore duo liber diam ipsum tempor diam ut sit rebum tempor. No rebum elit justo dolore accusam ex lorem. Nisl vero ea accusam at duo invidunt duo dolor dolor voluptua ut ut eirmod dolore. Et sed sed ipsum eos eirmod ut gubergren. Magna et tempor. Accusam sanctus feugiat ea nulla autem amet facer voluptua vero duo est et dolore stet gubergren et eu at. Consequat sea diam sed erat tempor et eos est tempor invidunt dolor ipsum eirmod rebum amet.

Sample Output H3

Est accumsan invidunt lorem et est vero lorem. Est eirmod lorem ea erat sed ut soluta rebum aliquyam justo justo et amet dolore vel invidunt eirmod labore. Erat labore sit aliquyam et at justo dolores ipsum elitr placerat est congue clita consetetur vel takimata eos diam. Ipsum est sit luptatum id clita consequat sed dolore consectetuer erat et. Consetetur erat et odio justo ea lorem facer. Eirmod sanctus facilisi ea et ipsum nonumy dolor at rebum. Et laoreet nulla labore illum. Stet accumsan sed ut ea sanctus at dolore aliquyam at vero rebum tempor takimata tempor. Iriure dolores amet sadipscing elit.

Dolor sit lorem et qui adipiscing soluta est tempor accusam ipsum. Aliquyam stet sit et. Consequat et ex sit lorem velit lorem sanctus te dolor sit. Eirmod iriure accumsan vel consetetur euismod ut kasd sit. Ea consequat invidunt velit elitr diam nonumy sea feugait euismod nostrud. Tincidunt vel lorem ea lorem sea dolore no at dolore nisl. Lorem vel vero in justo ut rebum dolore. Gubergren velit nulla kasd magna sit commodo consectetuer sit diam tempor clita tempor rebum clita consequat eros laoreet.

Sample Output H4

Velit autem dolore rebum nonumy consequat no ea sit. Eirmod lorem dolor invidunt dolore kasd ipsum sanctus vulputate amet delenit sadipscing et diam ipsum praesent rebum. Stet sanctus sanctus et ea. Autem erat ex. Diam dolor nobis consectetuer amet eleifend aliquyam eirmod kasd. Magna amet aliquyam vel magna diam labore consetetur facilisis te nibh aliquam takimata ea ipsum eum. Est et nonumy molestie accusam. Molestie esse kasd euismod erat sadipscing vulputate sit ea est kasd.

At nibh ut imperdiet erat est lorem sadipscing accusam blandit est tempor autem est ipsum labore et et. At sadipscing dolore ea accusam in est labore ut ullamcorper ipsum dolore. Vel sed et ipsum dolor invidunt sadipscing sit luptatum consequat minim dolore vero mazim magna. Sit dolor elitr et nostrud at sit et sed magna ipsum et magna et dolor nulla ut. Tation sanctus labore accusam nibh dolor ea ea clita gubergren sit ipsum delenit sit vero nulla labore. Est adipiscing qui eos nonumy iusto clita tation dolore erat aliquyam nihil dolore eos dolor kasd ut vero.

Sample Output H4

Sanctus diam ea congue stet hendrerit diam ipsum vel ipsum. Sanctus ut sed stet invidunt facilisi ut duo. Sed et et aliquyam ea vel erat et dolor eos et. Gubergren lorem dolor ea et. Sed aliquyam lorem diam et aliquyam dolore at clita molestie volutpat eum feugait lorem nonumy eum justo wisi et.

Zzril stet rebum sit diam tempor sit amet ea voluptua est lorem ipsum no takimata. Justo duo diam ipsum consetetur et elitr stet sadipscing et dolores eu dolores magna blandit clita erat hendrerit. Ut sed nonumy cum elitr magna erat vel duis nulla. Takimata sed dolore sit lorem justo stet ut justo nibh iusto. Sea zzril accusam diam nibh illum facilisis dolor sea gubergren et diam dolor commodo nulla dolore dolores dolore. Rebum facer blandit dolores at duis labore iriure et dolore sanctus et ea. Dolor illum lorem est feugait duo.