www.cloudformatter.com

cloudformatter format requests: 2,673,988    pages delivered: 6,962,403

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

Sed rebum accumsan dolore ea clita dolores sed dolore quod consetetur diam hendrerit takimata at lorem dolore dolor lobortis. Accusam justo et ullamcorper commodo sea vero rebum invidunt takimata duo magna magna aliquyam amet tempor. Autem takimata eos dolor iriure eirmod sit liber tempor sit ea molestie sed delenit sed sea eirmod. Gubergren ut lorem ipsum nonumy velit et sadipscing at voluptua vero no et clita eirmod takimata aliquyam sit dolore. Takimata justo est. Aliquyam takimata no erat erat kasd gubergren vero gubergren dolores justo erat ea dolor kasd elit at et. Vel vel nostrud sed. Dolor amet ut amet vero accusam at diam sanctus consetetur blandit et veniam eum enim rebum zzril ipsum. Eirmod exerci tincidunt sadipscing labore sit et elitr eirmod kasd gubergren at dolor sed sanctus eleifend erat voluptua.

Eirmod nam eu eos et duis sea et amet sanctus consetetur erat adipiscing augue sed gubergren dignissim sea sit. Erat aliquyam diam erat autem aliquam dolores sadipscing ullamcorper elitr. Eirmod ea ipsum kasd option et aliquip et. Diam dolor at et dolores magna in facilisi. Augue sit accusam no accusam velit no eu ea imperdiet et erat ea erat takimata est sanctus. Consequat dolor sea consetetur amet ut facilisis dolor dolore eirmod sea stet ad magna gubergren voluptua sit dolor erat.

Sample Output H3

Facilisis dolore dolore praesent no euismod vero clita. Invidunt diam kasd. Est est kasd. Eum consequat ea ipsum nulla velit vero vulputate et invidunt justo in eirmod. Sed voluptua lorem kasd dolores feugiat veniam sed diam dolor at rebum dolor aliquyam. Imperdiet voluptua ipsum consetetur te dolores sadipscing rebum sed duo nonummy sea ipsum diam diam sea dolor. Voluptua vel labore feugiat consetetur nonumy dolor sea est. Stet dolore vel ipsum consetetur dolore lobortis gubergren commodo duo iusto diam et clita stet tempor. Qui dolor rebum nonumy duis eirmod feugiat voluptua no sit rebum dolore. Elitr dolor sed amet dolor eu elitr elitr ea. Facer rebum gubergren.

Lorem ut et justo dolor ea et facilisis diam eirmod qui iriure dolores voluptua rebum invidunt facer consetetur sit. Consequat wisi et consetetur labore ut minim justo dolores sadipscing et commodo lorem. Diam kasd sed eum veniam lorem gubergren elitr ipsum clita duo invidunt at. Dolor diam sit. Rebum at nonumy ut clita vel labore consequat diam.

Sample Output H4

Et dolore dolores in esse lorem lorem laoreet no consequat dolor dolore minim voluptua. Sadipscing dolor diam imperdiet duo sea elitr et lorem consetetur duo sadipscing nostrud feugiat imperdiet ea no dolor. Vero rebum labore. Molestie dolores ipsum invidunt sed takimata sit sit dolores ut ea. Tempor eos duis erat et at sea lorem amet dolore. Minim no magna consequat eirmod. Option lorem sed sadipscing ea sanctus iriure et eirmod dolores rebum stet dolor duo commodo amet clita gubergren sed. Sit consetetur et odio ut et ut diam lobortis sea consetetur facilisi sanctus kasd tempor. Takimata vero iusto amet et no enim takimata duis sed dolor tempor vero duo autem accusam placerat. Ut suscipit aliquyam ex sea diam facer dolores. Gubergren eos takimata gubergren aliquip ipsum minim tempor duo esse te vel quis consetetur.

Facilisi at ea lorem diam ad vero sit liber sadipscing feugiat labore labore qui nibh gubergren et at. Ut nonumy justo kasd nonumy nonummy rebum. Sit magna consetetur hendrerit clita stet sed duo ut nibh rebum dolor et lorem. Eos clita sit tincidunt. Delenit sea ea et invidunt aliquam lorem qui et rebum at no ut ea sanctus justo amet qui. Accusam in ipsum kasd dolor dolor sed invidunt dignissim. Veniam lorem et ipsum elit dolore elitr et diam sed takimata sed. Dolore dignissim commodo est eum dolor. Molestie sed elitr nonummy accusam sanctus et ipsum consectetuer rebum ut dolore accusam est no ea.

Sample Output H4

Nonumy option amet lorem volutpat clita magna autem duo nulla invidunt vel dolor ea eos sed dolore ipsum. Voluptua magna kasd diam sadipscing ea dolore dolore at tempor assum sit lorem congue amet ex amet. Illum at commodo molestie sea eirmod odio in. Duo velit gubergren vero. Sed no voluptua vero consequat sit diam et invidunt aliquyam. Veniam ipsum sanctus aliquam eirmod magna lorem est adipiscing diam sea ut tation vero eos luptatum. Iusto ea kasd elit consetetur consetetur. Amet odio at takimata at assum dolore eum justo sanctus veniam nonumy minim. Sea tempor vulputate sanctus sed luptatum consequat duo dolores sit ut sed eos autem accusam justo ullamcorper duo. Imperdiet tincidunt molestie est elitr erat sit augue consequat facilisi et diam. Invidunt tation stet.

Euismod dolores sit amet sed stet at. Sit ea illum et sit est nihil tempor justo. Elitr et stet voluptua magna lorem lorem diam dolor. Facer eum augue sit consetetur eos sed vel sea consequat eum. Dolor voluptua et aliquyam amet clita tation vero aliquyam dolor et sadipscing hendrerit clita takimata cum esse.

Sample Output H3

Duo duo consequat clita. Velit et consetetur ipsum diam sed nihil vulputate et consetetur dignissim iusto. Sit no eirmod et sadipscing nostrud sadipscing nibh aliquip et et vero sadipscing et dolore dignissim sanctus. Enim rebum elit minim clita dolores. Consequat ipsum lorem consequat accusam amet et. Kasd sit ut no sit at eirmod duo consetetur dolore erat kasd ipsum blandit. Stet dolore euismod ipsum diam nostrud nulla takimata et et diam. Tation tempor erat sit invidunt sed accusam dolore. Et dolore et est nibh amet vel.

Sanctus accusam dolor iriure invidunt nulla gubergren sit sit consetetur aliquyam diam lorem eirmod gubergren et. Ullamcorper ea kasd consequat et sed invidunt gubergren option et at in sed rebum. Vero et rebum. Eum duo sed. At nonumy diam voluptua ipsum hendrerit eu suscipit sanctus sea aliquyam nisl vel lorem. Invidunt clita clita sed est nulla diam eirmod tempor ea. Labore et eos rebum dignissim amet.

Sample Output H4

Takimata ipsum aliquyam duo et dolor accusam dolore et invidunt. Gubergren consetetur sit consectetuer sed ut illum lobortis tempor et kasd. Et te duo elitr eum dolor sadipscing eirmod ut ut justo elitr gubergren takimata dolor sed elit ut amet. Ipsum et esse nulla. Ea consetetur sed sit ullamcorper dolore voluptua nulla dolor in iriure luptatum consetetur eum sit sed dolore duo dolor. Est eos et invidunt in eos invidunt no dolor dolor assum takimata vero et kasd elitr rebum invidunt. Justo sadipscing veniam eum et stet sit consequat hendrerit ea dolor velit consequat. Volutpat et sit. Aliquam erat consectetuer. Nonummy aliquyam lorem eirmod invidunt eos accumsan dolore eos rebum amet at et.

Eros takimata lorem erat sanctus consetetur ea assum diam est. Kasd tempor ea justo sed hendrerit nulla lobortis elit eos et sed labore invidunt diam dolor voluptua et. No tempor enim diam diam et ut lorem rebum dolore aliquyam ullamcorper eos et invidunt clita. Adipiscing lorem aliquam ex sit duo diam rebum amet clita et. Feugiat duo velit suscipit. Veniam nulla clita aliquyam sed ex et hendrerit clita est consequat nisl sadipscing nibh facilisis sanctus vero.

Sample Output H4

Erat te sea justo rebum sed consetetur et option amet invidunt duo sed est vero vulputate zzril blandit facilisi. Duo ipsum voluptua eirmod eu erat vulputate sit enim nostrud. Lorem tation praesent diam nam nam ut ipsum. Labore dolore voluptua diam facilisis velit nostrud ut. Sadipscing rebum tincidunt ad accusam aliquam eos elit justo tempor ut suscipit.

Sed sit dolore erat sea sed. Aliquyam elitr magna est ut ipsum et erat adipiscing sit stet eirmod aliquip vero. Labore est tempor erat erat eos vulputate et diam dolore elitr. Labore magna in takimata dolor at et dolor ipsum takimata nostrud dolor. Sed lobortis liber ut enim dolores ullamcorper amet augue et amet. Erat et clita clita accusam magna et feugiat vero tempor ipsum eirmod nonumy kasd diam. Sed sanctus diam in justo diam lorem tempor magna dolor at lorem dolor. Nonumy ipsum et ipsum facilisi elitr dolor labore labore diam est ut sea diam nam enim molestie ipsum. Et eirmod eos velit commodo et sit nonummy. Elit diam nonumy et rebum consequat minim amet dolore diam eirmod in quis sadipscing et sit tempor eirmod vel. Magna dolore elitr in ea voluptua et luptatum consetetur zzril sed sanctus sed quis.

More Sample Output H2

Accusam dolore accusam elitr mazim tation sadipscing dolor. Erat iriure amet sit lorem nulla dolore et dolores consetetur eos ut duis sea tempor in amet sanctus gubergren. Consectetuer gubergren lorem ipsum lorem aliquyam est dolores at sanctus sadipscing nonumy at at. Lorem diam nulla. Sit sit vulputate stet et elitr odio eos at ut dolore iriure consequat. Dolor aliquip ipsum eum. Dignissim vero et luptatum suscipit dolore ut sadipscing elitr elitr eos nonumy et ipsum aliquip elitr amet. Autem congue clita diam takimata aliquyam. Aliquyam eos ut est tation vero praesent sit.

Ea diam no lorem dignissim sit ipsum commodo zzril dolores rebum ut nonumy amet tation consequat feugait. Ipsum stet sadipscing et consetetur justo sed rebum consetetur iusto zzril. Takimata justo magna voluptua dolor dolore invidunt laoreet clita rebum rebum aliquyam sadipscing. Dolor augue no nibh euismod diam amet magna velit diam. Amet kasd sit sadipscing at at sed et et erat amet ut stet lorem diam adipiscing accusam sadipscing. Option rebum et lorem amet imperdiet accusam consectetuer erat dolore duo no facilisis et at velit lorem eos sed.

Sample Output H3

Ut dolor gubergren justo vero dolor aliquyam diam. Sed amet tempor nam sed eirmod at duo duis ea tempor vulputate dolore sadipscing lorem justo lorem. Nonumy diam nibh voluptua tation in kasd voluptua. Clita erat dolore labore vero. Sed molestie eos et sea et tempor tation dolore sit rebum ea dolor et. Nulla lorem sea volutpat.

Hendrerit ipsum ipsum duo erat ea accusam stet. Labore dolore sit eos ipsum in elitr dolor sea hendrerit ipsum accusam stet option imperdiet ut sed. Stet sit erat blandit nihil nisl eum. Tempor esse laoreet clita justo ea augue euismod kasd magna accusam lorem. Gubergren eirmod odio. Consetetur molestie tation eros autem sanctus eu justo. Sed nonummy sadipscing dolores ex sadipscing ut amet in iusto vero erat suscipit tempor at et eirmod veniam enim. Kasd lorem stet tempor duo ex ea ut magna et autem. Sadipscing tempor in duo.

Sample Output H4

Dolor consequat justo sed lorem et duis dolor lorem luptatum ipsum takimata dolor voluptua justo. Est vulputate et et lorem sit diam elit ea ipsum nonumy labore. Odio rebum invidunt illum diam dolor dolores eirmod dolore ut ipsum delenit doming et lorem commodo. Vero facilisi accusam elit et sanctus labore nisl clita dolor aliquam ipsum stet. Voluptua at diam ad et erat magna dolore sea dolor amet dolore tempor consequat et. Vel sed et lorem euismod sit stet ipsum accusam. Sanctus amet ea est ut labore et et accusam dolor accusam luptatum dolore iusto qui consetetur rebum dignissim. No ipsum vel et exerci iriure lorem et elitr hendrerit feugait option.

Lorem eos takimata dolores molestie. Gubergren luptatum clita duis erat gubergren labore duo eu invidunt. Vulputate nulla nonumy euismod et in et et nonummy at. Nihil vero sit labore est est magna duis et. Clita amet voluptua congue commodo et eu elitr eros et sed est aliquyam sed et et lorem amet amet. Tation gubergren dolor autem ipsum stet tempor magna veniam aliquyam dignissim erat dolore suscipit et. Clita diam lorem vero aliquam amet et tempor facilisi tempor sed sanctus et vel. Invidunt eirmod sanctus labore dolor diam aliquyam amet possim zzril ut.

Sample Output H4

Duo clita zzril et ea sed dolores diam. Nibh est dolore sed mazim ipsum gubergren labore ipsum. Dolores diam nisl wisi wisi accusam diam tempor magna nobis ipsum sadipscing labore justo et dolor facilisis duis eirmod. Accusam sed sadipscing dolor takimata labore et sea dolor diam sit est erat lorem sed ipsum. Zzril sit esse eros sed esse voluptua at eirmod nisl sadipscing vero diam. Lorem aliquyam takimata euismod nonumy invidunt sea et duo eos ea diam est dolores dolore feugait stet.

Duo ea ea. Commodo dolore te sit dolores iriure duis delenit blandit. Duo ut euismod tation ullamcorper feugait amet euismod takimata. Accusam nonumy sit nulla no dolores accumsan no placerat sed est. Dolores magna diam et dolor invidunt sed amet sanctus blandit sit et invidunt duis tempor et eirmod. Et kasd sea. Tempor justo at aliquyam placerat sit duo blandit vero kasd accusam at duo consetetur.

Sample Output H3

Et zzril adipiscing eros velit iusto consequat lorem te consetetur aliquyam placerat. Augue elitr sadipscing invidunt aliquyam eirmod at. Dolores minim sed magna nonumy nibh lobortis amet kasd. Diam duis dolore minim esse vero option sed ipsum. Vero est ipsum et amet dolor feugiat. Nonummy nonumy eirmod est no accusam stet tempor sea erat aliquip sadipscing sed no dolore. Lorem sea kasd ipsum accumsan dolores est ea gubergren hendrerit. Clita ea accusam tempor sed ut labore dolor voluptua in facer laoreet. Duo ipsum justo est. Clita in ipsum ut dolores et ipsum tempor elit nibh kasd dolor in eirmod esse vero.

Tempor sea gubergren ut iriure vero kasd tempor eu duo accusam magna kasd magna amet amet suscipit augue. Euismod dolore est erat lorem ipsum laoreet at ipsum. Nobis tempor amet dolores sed dolore rebum est accusam amet at nonumy erat ipsum justo dolores lorem ipsum aliquyam. Iriure aliquip diam sea kasd at dolore suscipit eos invidunt sed elit tation ut. Magna liber rebum invidunt ipsum invidunt sed ut praesent mazim magna dolor erat lorem stet et et consetetur aliquam. Amet dolor in sanctus amet consectetuer tincidunt enim ut esse no. Amet eirmod eirmod et invidunt et.

Sample Output H4

Ea dolores eos labore rebum in feugiat feugait ut nonummy eirmod est. At aliquyam labore. Sea justo augue magna dolor amet. Et no eos. Nibh diam eirmod tempor erat ipsum rebum et eos euismod sed in. Rebum autem eos consectetuer tempor et sit elitr lobortis ex sed rebum ipsum invidunt assum.

Duo ut duo amet aliquyam consetetur takimata dolor tation ut clita dolor kasd labore et amet. Et clita diam sanctus eum eros lobortis sed at exerci facilisis et. Duo at et at exerci vulputate at sit ut ipsum minim elit sadipscing ipsum laoreet amet mazim erat erat. Feugiat esse ut eos et. Sit rebum lorem ipsum lorem stet erat illum dolores tempor rebum et rebum. Tempor erat magna no sit augue blandit euismod sed.

Sample Output H4

Et amet accusam stet ipsum et gubergren clita justo. Consetetur dolor rebum duo nisl tempor tempor magna hendrerit aliquyam. Ipsum eleifend luptatum tempor sed wisi diam et erat tempor tempor vero nonumy vero. No et in lorem est est nibh. Diam molestie duo feugait tation no no autem takimata blandit et magna amet aliquyam diam takimata consequat et.

Diam eos ad et consetetur et duis et te ut et lorem. Vel eirmod duis diam no ut rebum. Iusto rebum sed autem sadipscing sit lorem amet eos velit nam sit ipsum dolor est. Eros amet ipsum adipiscing diam nonumy accusam elitr et stet vero ex sit et vero dolore amet accusam. Elitr facilisis nonummy duo diam nulla diam. Iriure justo takimata hendrerit facilisi labore id commodo sadipscing erat et sea sit elitr dolore. Aliquyam facer labore dolore ea amet accumsan dolor consetetur tempor illum vel labore. Voluptua eirmod gubergren gubergren diam eos clita nulla enim dolores sit vulputate elit ut sit sit et. Consetetur magna eirmod voluptua lorem erat sit enim stet sanctus amet.