www.cloudformatter.com

cloudformatter format requests: 6,322,931    pages delivered: 14,377,036

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

Tempor gubergren ipsum dolor diam nonumy possim magna invidunt ea. Euismod vero diam clita hendrerit congue dolor duo takimata te duo facilisi accusam sit nonumy amet dignissim et ut. Nonumy tempor dolore autem feugait labore. Rebum lorem ea et. Nihil sadipscing ea dolor dolores clita amet dolor et duis hendrerit invidunt ipsum. Nulla ea ut eirmod justo kasd amet erat iriure lorem stet consequat ex takimata eum. Consequat dolor ut nam gubergren diam sit consetetur nobis lobortis vero sea ipsum elitr aliquyam dolor sadipscing. Facilisis suscipit kasd diam amet et invidunt erat dolores clita rebum praesent. Nonumy lorem et no ea nonumy nonummy sanctus option ad eos ut erat tempor. Et qui at consequat sea magna. Sed sit gubergren doming qui est magna sed nonumy no amet rebum ut.

Et kasd sed elit consetetur diam sed sadipscing facer dolore ut et clita vel velit sed. Dolor et option dolore duo et feugait gubergren erat et tincidunt no et et. Ipsum amet erat aliquyam enim. Lorem laoreet amet takimata. Clita qui eirmod et magna. Dolor facer gubergren sit ipsum et eu eirmod minim accusam dolor sea velit. Vel ad kasd rebum dolores voluptua.

Sample Output H3

Sit elitr ut amet vero congue kasd diam accusam. Eirmod est takimata ipsum wisi accumsan sit vero nonumy no ipsum lorem sed veniam diam. Ut no diam dolor ipsum est voluptua lorem diam invidunt sed volutpat et labore gubergren laoreet dolore tempor. Erat diam suscipit ipsum ut erat sadipscing. Sit duis te consequat. Blandit dolor rebum ut erat diam takimata dolore aliquyam eirmod. Sed nihil ipsum hendrerit sanctus eu takimata et volutpat no ut aliquyam vel magna iriure ea gubergren justo. Ipsum rebum lorem ullamcorper dolores ea molestie consetetur est sanctus et ut sit tation magna esse erat rebum sit. Ipsum vero molestie sit. Dolor et dolores ut diam aliquyam ea rebum est.

Diam elitr illum vero invidunt tempor ipsum dolores. Est labore iusto amet tation ut commodo sea tempor lorem kasd ut vulputate. Illum elitr invidunt euismod. Id magna no. Eos amet rebum eirmod dolor sea enim wisi vero odio feugait at labore labore ipsum. Sed facilisis sed sed eos eos ipsum et ea sit. Eleifend consetetur voluptua in amet sit.

Sample Output H4

Nihil clita feugiat eirmod aliquam. Voluptua odio accusam in consectetuer amet nibh ea et. Magna eos eos rebum duo adipiscing gubergren et suscipit iusto rebum accusam. Lorem consequat aliquyam dolor dolor eirmod dolore sit rebum odio est eos blandit magna at. Ea tempor magna vero in ullamcorper accusam autem sanctus lorem clita.

Sed sit laoreet eirmod dolor lorem sed nam ipsum sed. Sadipscing et ut dolor voluptua elitr zzril aliquip magna sadipscing diam et enim ipsum. Accumsan stet ea sed invidunt voluptua takimata ad consequat at facilisis. Sit sea duo elitr stet dolores ut duis amet ut ut accusam rebum elit sadipscing. Stet esse vel no nostrud ut dolores dolore sed. Sanctus accusam ut ipsum duis kasd dolor quod. Et wisi aliquip dolore consetetur sed sed kasd amet diam vel tempor. Dolore ex amet stet vero odio sea sed elitr justo amet enim.

Sample Output H4

Wisi placerat nostrud takimata et possim. Dolor vero nonummy diam vulputate consetetur diam at amet aliquyam feugiat invidunt lorem labore ea laoreet. Ipsum no sit erat. Dolor ea erat amet et duo lorem sed et illum esse sed ut elit ex tempor nobis amet aliquyam. Iriure rebum et magna voluptua quis et et et ipsum duo ipsum dolores. Dolore magna dolor sea kasd. Takimata sea ea sit autem aliquyam diam justo duo. Qui ea et sed delenit dolore consetetur autem exerci sed dolor volutpat tempor lorem justo ut vero voluptua.

Nonumy vel labore sanctus sed amet ad. Commodo amet vero. Sit tincidunt et clita dolore nonumy no clita tempor labore praesent et dolor nonumy lorem justo imperdiet nostrud. Sed ut aliquyam consetetur at aliquyam consequat amet dolore et et dolore nostrud labore sanctus dolores augue aliquyam amet. Ut amet iusto consectetuer et diam ea rebum nonumy elitr id dolor eirmod diam amet clita accusam no consetetur. Erat et et elitr dolores duo lorem ut invidunt dolor sadipscing accumsan sit ullamcorper accusam.

Sample Output H3

Stet aliquip dolore rebum blandit imperdiet nonumy id dolor sadipscing eirmod eirmod consetetur. Dolores ut sadipscing nisl adipiscing feugiat nulla erat suscipit et magna consequat eu lorem. Sit dolor justo autem sit. In eum elitr lorem voluptua gubergren dolores te at. Feugiat elitr sit doming tation nisl takimata exerci vel ad consetetur lorem sed et accusam aliquyam vero accumsan. Erat et nulla vero qui eos in sit tempor aliquip odio. Vero elit sanctus volutpat diam dignissim justo sit ut takimata nonumy sed duo diam. Suscipit no sed dolor aliquip nulla tempor sit ipsum eos duis. Molestie justo praesent odio ipsum lorem justo accusam molestie ipsum molestie ea.

Sit at nisl accumsan nonummy accumsan et dolor et vero in nulla et iusto liber ut no vel. Kasd dolor tempor rebum tempor facilisis nulla erat dolore. Ipsum nulla stet dolor cum. Sanctus tation takimata kasd diam eirmod no invidunt at amet rebum dolore eum amet. Dolor diam takimata et sit et kasd ipsum kasd ea sed eu hendrerit aliquyam ut sed. Magna et sed diam et et adipiscing. Diam elitr dolore accumsan stet consectetuer. Sed vulputate nulla praesent aliquam justo et. Duo est elitr sit elit sea justo est nonumy duo placerat ut hendrerit diam no vero. Nulla sea takimata kasd lobortis.

Sample Output H4

Dolor vulputate dolor lorem et duo diam sit kasd ea diam dolor erat odio dolor dolor takimata ipsum. Facilisi vulputate augue gubergren et kasd ipsum gubergren rebum nonummy nulla amet. Sadipscing et sadipscing aliquyam euismod accusam luptatum et diam. Iriure vero aliquyam dolores erat tempor facilisi stet sit. Et ut consequat ipsum accusam nulla. Et at diam sadipscing nulla duis augue ipsum takimata vero. At invidunt et stet erat sit. Sadipscing hendrerit ipsum vero accumsan euismod ea rebum facer duis sanctus eum justo voluptua amet. Adipiscing delenit sit magna vero accumsan molestie vulputate sed sadipscing.

Magna takimata accumsan sed consequat molestie sanctus ipsum lorem nulla praesent magna sed ut sadipscing dolor elitr stet. Facilisis sit volutpat nonumy zzril sed ipsum veniam diam et gubergren et. Iusto elitr amet labore tempor zzril amet nonumy vel elitr et et magna amet. Kasd dolore consequat autem. Et nonumy te diam praesent at stet feugait et at doming consetetur. Ipsum stet dolores ut gubergren rebum amet dolores.

Sample Output H4

Lorem labore eos. Eum amet sit est sadipscing consequat accumsan sed wisi. Velit sit stet blandit clita et et wisi sanctus et clita lorem consequat voluptua labore. Sit nostrud est takimata at congue id et ut no accusam et. Dolor sea vero aliquyam justo duis quod. Tincidunt minim dolore no. Diam ipsum odio gubergren et.

Sadipscing et ea vero dolore sed eirmod nonumy accusam. Kasd amet ipsum stet sit stet eirmod sea praesent kasd facilisis. Sed sadipscing iusto dolor ipsum dignissim in tempor elitr dolor eum. Elitr erat elitr sit ipsum sed gubergren cum erat voluptua nonumy aliquam diam. Eleifend diam eu volutpat consequat elit eirmod at elitr est justo veniam vero diam dolores invidunt gubergren dolores eos. Hendrerit duo et eirmod accusam hendrerit ex gubergren nonumy magna et amet euismod. Et luptatum tempor hendrerit sadipscing ipsum ea dolores invidunt iusto amet. Esse mazim tempor diam amet. Vero takimata liber consectetuer accusam facilisis rebum clita et at lobortis kasd. Aliquam nonumy stet gubergren consequat ipsum et eos. Ut et duis eos odio lorem luptatum takimata eos minim ea dolor id aliquam est suscipit.

More Sample Output H2

Dolore dolore rebum consequat stet et sed magna dolore at sed liber consequat erat autem diam. Amet et facilisi vero ea eu sed est sed ea enim vero esse takimata kasd et et magna. Accusam lorem no. Elitr nonumy amet sed ad tempor ea ut laoreet est ipsum sed iusto vero dolor at et iusto magna. Gubergren doming sanctus. Dolores ea amet et duis lobortis dolor accusam at no amet ut amet molestie at tempor diam.

Assum diam dolor. Consectetuer lorem aliquyam molestie autem duo tempor rebum nonummy dolore tempor vero dolores consequat accumsan consequat. Ea facilisis et facilisis sanctus. Gubergren illum consetetur augue consetetur aliquyam cum tempor diam sit et tempor accusam feugiat et. Lorem aliquyam consetetur aliquip ipsum dolor at kasd amet tempor clita diam invidunt vel qui feugiat et liber erat. Ipsum et elitr vel diam. Aliquyam iriure at et stet sea amet vel aliquam eum illum. Magna stet sanctus nobis sed in consectetuer facilisis aliquip sadipscing magna dolor iriure ea ea. Ut ea stet consetetur nonummy nisl dolores est dolor ut et est kasd vero no eos te. At et stet tempor kasd labore labore ut stet lorem tation erat esse sanctus. Euismod sit exerci consequat nostrud dolor iriure eum.

Sample Output H3

Kasd at rebum gubergren erat labore sea tempor at sea consequat labore ea eirmod clita voluptua takimata dolor rebum. Tation vel diam duis odio gubergren qui exerci invidunt. Et lorem sed accusam duo nulla molestie nostrud duo et. Sed ea dolor consetetur sed dolore. Volutpat eirmod invidunt ipsum enim sed nonummy stet kasd dolor nam duo consequat justo sit eum at aliquyam. Consetetur et eirmod nam dolores sed consetetur diam zzril dolore elit justo magna consequat ex eirmod invidunt.

Dignissim tempor exerci liber tempor sit dolor duo liber dolores diam wisi placerat rebum magna lorem sit. Vero assum takimata et dolor clita zzril vel ut voluptua accusam dolore. Et vero accusam vero et duo consequat amet et rebum. Ullamcorper erat et consectetuer nonumy est labore no amet vero no et erat. Ullamcorper zzril nonumy. Et doming nihil iusto invidunt at doming invidunt est at. Vel lorem sanctus vero dolore duo duo sanctus labore eum dolor elitr kasd.

Sample Output H4

Sanctus est sed nulla adipiscing vulputate vel accusam dolore justo consetetur labore iriure duis invidunt esse amet. Feugait rebum invidunt tempor. Ad erat facilisi. Est clita tempor lorem vel et facilisis et placerat vero vero veniam dolore. Et ipsum nonumy est et vel lorem dolor sea magna vel accusam ipsum lorem molestie no sed. Diam gubergren assum feugait labore luptatum sadipscing. Facilisis elit rebum delenit voluptua. Ut nisl ut et in et nonummy magna erat sea lorem diam.

Dolor sadipscing ex consectetuer gubergren no erat eos iusto accumsan et laoreet imperdiet lorem nulla. Commodo sed et et nibh magna elit et dolor vero et vero sanctus nibh accusam eum clita. Facilisis lorem magna. Et dolores iriure duo. Magna rebum eirmod kasd kasd ex veniam elitr vel justo magna tempor eirmod feugait nonummy magna ut nonumy consetetur. Elitr duo id veniam blandit et amet aliquyam vel est est est voluptua. Ea sanctus ea stet tincidunt diam amet vulputate sit dolore sanctus sadipscing dolor dolor duo vel tempor diam.

Sample Output H4

Sadipscing sit eirmod eros dolore vel sanctus magna dolor assum zzril. Dolor sadipscing elitr dolore sit odio aliquyam et in eos dolor et. At dolor amet iriure labore duo diam cum elitr ipsum sed dolor labore tempor elitr et consectetuer. Takimata at dolor. Lorem cum euismod justo ut luptatum illum stet sit. Duo liber invidunt dolores accusam consequat. Dignissim iusto amet et diam ut tempor sed ut diam amet takimata nulla adipiscing.

Id dolor magna dolor autem soluta sed labore et labore consequat dolor luptatum labore nulla zzril. Lobortis accusam accusam ipsum. Sed labore sanctus sed lorem sanctus nonumy est amet est eos dolor elitr wisi voluptua dolor. Justo consetetur et diam nonumy et lobortis sit eleifend facilisis. Clita justo enim mazim sit ea te et nonumy voluptua soluta sit amet elitr eirmod adipiscing.

Sample Output H3

Elitr sed accumsan aliquyam lorem dolor sed eirmod diam accusam sit stet amet. Ad hendrerit sadipscing facilisis feugait magna duo autem lorem erat diam dolore. Voluptua accusam ipsum amet magna tincidunt stet nulla dolor et consequat dignissim. Ipsum stet et diam feugiat sea dolore ut qui accusam lorem adipiscing et ipsum. Ut ut gubergren diam dolores consectetuer ut dolores sed et amet eum magna gubergren lorem duo.

Magna ea sanctus justo delenit justo et. Sit sed enim. Eirmod nihil nulla enim elitr amet. Quis ipsum exerci iriure sit sit. Erat amet et takimata est ipsum. At eros rebum voluptua dolor quod gubergren. Dolore duo sea duo. Dolore dolor diam eu duo accusam eirmod amet duo cum et gubergren duo. Sed tempor duo sadipscing.

Sample Output H4

Sed duis tempor stet mazim facilisis qui eirmod qui et tempor ut duis gubergren. Gubergren takimata ipsum in labore dolore accusam. Takimata mazim et nonumy. Et lorem ea et sed et dolor in ea. Diam nonumy aliquam et amet ipsum sea eirmod erat elitr eirmod aliquyam aliquyam sed dignissim.

Sed ut minim hendrerit facilisis duo ut ut veniam est dolor clita tincidunt illum ipsum amet. Rebum sit zzril eos in no aliquyam lorem justo. Sit invidunt vero dolores ipsum consequat invidunt takimata et ea invidunt eu esse sit dolore ut sadipscing takimata tempor. Kasd justo lobortis ipsum ipsum justo est ut sit. Amet dolore nisl dolore nulla amet est tempor et. Sanctus vero et voluptua aliquyam minim clita et sed et et velit kasd et. Nulla justo autem vel dolore magna amet accusam accusam erat erat at sed at dolor.

Sample Output H4

Erat dolores vel est. Sed praesent esse diam vulputate eirmod magna illum sit at dolor. Dolore voluptua nonumy diam no diam est ut lorem et et lorem facer diam sadipscing nonumy consetetur ullamcorper. Ipsum est no no. Gubergren magna sed augue.

Eos consetetur ut invidunt consetetur duis qui. Accusam takimata sed accusam ipsum dolor. Dolore amet dolor consetetur elitr tempor lobortis adipiscing nonumy sit eos adipiscing sit magna nostrud. Sadipscing feugait tincidunt tempor tempor eirmod lorem erat lorem aliquyam feugiat hendrerit. Dolore ut dolore nisl accumsan sed no tincidunt lobortis et dolore. Elit rebum justo nisl sed. Ut nibh justo dolore exerci facilisis sit ut sadipscing rebum sanctus sed consequat in et sed. Autem ut sed diam dolor et stet iusto gubergren ipsum duo. Sea dolor et dolore tempor sea clita dolor.