www.cloudformatter.com

cloudformatter format requests: 6,310,165    pages delivered: 14,355,798

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 tempor sit ullamcorper exerci tempor aliquyam dolor sed consetetur blandit elitr dolor et ipsum kasd eos duo. Takimata vel consectetuer diam erat sea nonumy vel ut eu duo justo sea lorem rebum est sanctus. Ut sit ullamcorper vero vero aliquip amet clita blandit laoreet autem dolor. Dolor ut dolor commodo nulla vero no commodo dolore eos clita clita accusam. Sea et eirmod aliquip ipsum sadipscing dignissim et.

Ad dignissim magna at nostrud tincidunt adipiscing amet eirmod. Vel sed kasd eirmod dolore lorem feugiat kasd labore diam amet et ipsum sadipscing. Et dolore at labore dolor voluptua voluptua. Dolores labore kasd sadipscing ea eirmod ipsum. Luptatum vero amet diam. Rebum amet dolore ipsum. Ullamcorper sea nulla tempor labore dolore eirmod ipsum diam. Takimata dolore dolores diam suscipit eos minim tempor et sanctus et eos clita tempor duis elitr.

Sample Output H3

Sit liber sed. Esse gubergren sit justo lorem stet vel sed sanctus stet lorem eum. Tempor et diam invidunt sanctus et sed kasd elitr stet. Facilisis dolore sea sed erat et takimata ut. Dolore consetetur sea diam est ullamcorper zzril aliquip. Blandit molestie vero justo ut gubergren dolores vel option vulputate. Dolor rebum eum veniam consequat diam iriure ipsum sadipscing et invidunt vero et takimata volutpat sadipscing. Clita adipiscing ea ut magna ea elitr ut nostrud no et eu at dolore possim. Gubergren lorem velit aliquam tincidunt sadipscing ea rebum kasd facilisi dolor dolores ea. Stet magna et amet ut duo consetetur congue consequat. Sit tempor accusam.

Et justo dolor diam sanctus lorem dolor ut in. Duo eu sit dolor hendrerit ipsum voluptua diam invidunt feugiat. Sit nostrud dolor dolore takimata blandit eirmod dolore duo ipsum eos erat sanctus nonumy dolor erat. In feugiat consetetur nulla feugait vero et clita. Lorem no nulla voluptua. Vel enim tempor takimata erat accusam. Duis ea zzril diam vero justo sit dolore consetetur nam ipsum ut vero soluta eros accusam eros. Sit magna invidunt. Rebum aliquyam diam sadipscing consetetur accusam sit et duis consetetur hendrerit quis no stet sed ipsum invidunt. Et eirmod dolor et est sea ut sadipscing consetetur et kasd vel consetetur diam takimata qui consequat aliquam.

Sample Output H4

Vero eum magna at sanctus at. Stet feugait augue elitr. Nam eu kasd ea dolor et at et. Amet consetetur possim sadipscing duo ea ea. Takimata magna gubergren elitr odio dolore iriure laoreet accusam no. Diam et volutpat congue in duo at labore aliquyam in sit.

Eos sed voluptua lorem elitr praesent velit aliquyam dolor nonumy justo et et. Ut dolor consequat tation et takimata duis in sit et. Dolor sed et et molestie voluptua takimata stet. Duo adipiscing no aliquyam lorem eirmod volutpat ea stet. Lorem ea ut eleifend diam tempor ea lorem accusam diam iriure. Diam ipsum qui in dolore vel rebum quis nisl veniam accusam labore duo et. Lorem suscipit sadipscing est ea euismod sea accusam eirmod rebum feugait ut. At facer invidunt ut lorem sit sed takimata gubergren sea exerci eirmod sit et no liber amet et et. Praesent kasd facilisis sed sanctus autem lobortis zzril magna clita amet ipsum. Labore justo clita et invidunt stet ut magna diam tempor eleifend lorem et dolores diam lorem amet eirmod.

Sample Output H4

Ipsum illum erat gubergren takimata erat sed erat ut at nostrud vel ullamcorper. Dolores ipsum dolor aliquyam takimata no adipiscing est ut ut erat nihil et nonummy sit duo et. Dolor dolor lorem laoreet nonumy dolor enim sanctus ut diam eos et duo justo. Sed qui tempor ipsum cum delenit labore. Veniam doming amet dolore sed diam amet clita.

Sed rebum ea elitr consetetur aliquyam amet eos ipsum vero dolore et rebum. Consetetur eos eu sea rebum aliquyam stet praesent duo duo ut voluptua sed et justo. Ut euismod sit ad et eos eros ipsum vulputate takimata. Voluptua erat kasd sed eu adipiscing quis nisl liber suscipit elitr dolores sit ad at. Sit sanctus dolores. At no duo eirmod sanctus tempor erat. Et ipsum dolore justo ullamcorper lorem et nonumy. Ullamcorper diam rebum autem vel praesent voluptua sadipscing. Qui sit sit diam veniam exerci et et eirmod dolor dolore et et elitr rebum lorem sit.

Sample Output H3

Et gubergren ipsum tempor. Sea est amet et et veniam et sed eum sed velit erat quis. Sit sanctus et dolores elitr stet iriure amet tempor duo sit. Nonummy consetetur invidunt nisl eos erat stet accumsan et. Volutpat justo amet et et volutpat diam velit sanctus ad no ut takimata ut clita. Eos quod dolor tation ut gubergren et autem aliquyam ipsum. Sea labore nam sanctus. Iriure no facilisi kasd ut dignissim diam at vero illum clita tempor clita takimata tempor sit elitr esse.

Amet elit at takimata dolor et sed vero nulla amet. Justo sea clita ea ipsum sit nobis sadipscing duis lorem justo elit molestie. Labore voluptua elitr kasd lorem invidunt eum diam duo sadipscing clita. Amet vel eum at ut erat vero sea veniam aliquyam lorem hendrerit eirmod nonumy exerci rebum et. Diam sit labore ut no dolor praesent stet voluptua congue vero erat nonumy. Ipsum rebum amet justo nonummy duo ut nulla ullamcorper quis invidunt diam voluptua amet et ea dolore dolore. Nisl dolores et sit accumsan justo labore kasd soluta ipsum vel rebum et eros sanctus est sea consetetur.

Sample Output H4

Ipsum at velit accusam in ipsum voluptua. Et diam clita ipsum elit takimata qui voluptua molestie dolores et amet illum takimata lorem accusam. Eirmod ipsum dolore ipsum amet duo accusam accusam vel sit in delenit consetetur eirmod justo sadipscing. Sed stet takimata vulputate labore sea eos magna duo in accusam hendrerit labore nonummy ullamcorper dolor sanctus consetetur dolor. Duo eirmod diam invidunt adipiscing ipsum takimata sed clita sadipscing nulla lorem facilisi justo erat. Lorem quod commodo amet eirmod nonumy diam. Amet amet kasd aliquip et. Nonumy diam dolores diam consetetur eos et dolores gubergren consequat. Consetetur duo at et.

Dolor dolores amet ipsum dolore amet. Kasd facilisis kasd dolor vero. Tempor stet clita at ipsum dolor tempor facilisis. Euismod clita kasd molestie at amet sadipscing est ipsum justo dolore ipsum elitr. Et tempor nulla et consetetur.

Sample Output H4

Minim voluptua kasd sit ipsum vel et ut est eos aliquyam justo autem sea. Luptatum amet duo kasd erat sadipscing sea diam iriure. Delenit duo nonummy at autem et dolore erat sed. Consetetur lorem nonumy erat et gubergren dolor ut erat dolor labore sit dolore ipsum ipsum illum rebum consectetuer dolores. Lorem ipsum justo dolores. Aliquyam et labore gubergren lorem eirmod nonumy duo ipsum dignissim clita takimata eirmod rebum lobortis. Feugait dolore in doming dolore sanctus amet et rebum est erat stet et vero. Labore est iriure tempor nostrud dolor iusto elitr eu erat dolor.

Diam tincidunt vero justo sed vero. Minim consequat diam aliquam takimata. Erat eum dolore no exerci sit aliquip sed sed erat dolore sed ipsum ea ipsum et. Sit lorem nonummy dolor magna. Erat gubergren justo minim duis ipsum est ea voluptua erat et. At consetetur vero soluta dolor tincidunt. Stet ipsum amet elitr aliquyam erat sed sed velit. Ea erat diam dolor. Et ea sea et accusam voluptua placerat nisl velit dolore rebum nonummy diam diam dignissim.

More Sample Output H2

Amet odio justo ut sed duo facilisi labore takimata sea et at gubergren sit diam. Amet at takimata. Ipsum accusam labore hendrerit magna sed sadipscing. Et ea sed et sed sit erat takimata quis consequat sed nonummy ea. Rebum blandit in adipiscing euismod ipsum iriure et at et sed nonumy. Erat ullamcorper augue vero magna at elitr dolores tincidunt ipsum vel labore ea accusam labore et sit wisi clita.

Nulla duis augue enim takimata nibh. Facilisi nonumy ullamcorper sed. Amet sit wisi ea stet no odio consetetur ea est et consetetur nihil veniam sed elitr dolores at. Praesent autem et est sanctus lorem sanctus at no dolor amet ipsum elitr facer dolore justo. Eleifend gubergren eirmod at vero et lorem stet dolore qui accusam quis ea duis ut ea. Exerci et nulla zzril diam et diam vel at et nonumy commodo sea eos minim. Takimata ut takimata invidunt sit kasd kasd amet labore amet magna volutpat eu. Amet invidunt tempor hendrerit dolore feugiat et et velit. Ut sed lorem in ea ex justo magna vero est gubergren eos dolores.

Sample Output H3

Ipsum takimata ut adipiscing amet. Dignissim et erat eos dolor veniam ea sed. Et ipsum ipsum diam dolor sanctus kasd ullamcorper nulla ipsum sadipscing sit aliquyam vero amet facilisis. Elitr consequat et labore vulputate elitr. Accumsan clita amet et blandit dolor nonumy sit eos tempor labore nibh et lobortis. Dolor dignissim wisi est. Vero ut exerci dolores sed tempor vel voluptua dolore exerci lorem soluta diam delenit et sed liber.

Et no ut sed sadipscing vero sadipscing feugait duo volutpat invidunt stet sanctus eos sea amet diam justo. Sed et labore blandit ea labore diam minim. Vero consectetuer et erat dolor at voluptua nulla wisi mazim enim sadipscing aliquip blandit. Esse diam amet consetetur est ipsum ea dolore molestie tempor dolores duis erat lorem at vero dolore. Consetetur lorem dolor amet sed amet lorem diam ut ex ut sea euismod suscipit. Invidunt erat accusam diam no amet dolor no. Rebum elitr aliquyam laoreet esse dolor in aliquyam diam. Ullamcorper ipsum aliquyam diam vero. Sed consetetur duo clita ut amet aliquyam nonummy sadipscing kasd.

Sample Output H4

Aliquam wisi dolore dolor sit tempor et ea assum suscipit justo et stet consectetuer duo ut amet sed. Vulputate wisi ad rebum dolores. Magna ipsum aliquam nibh sit dolore in takimata tempor elitr sadipscing dolores at ipsum sadipscing accusam sed takimata est. Duo dolore adipiscing diam. Amet sed gubergren invidunt facilisi gubergren dolor zzril. Ea et wisi nisl lorem.

Vero gubergren quod dolor et duo. Feugiat dignissim nonumy tation voluptua sit consetetur feugiat congue in sed elit amet magna. Erat dolore sea invidunt sea eirmod et et sanctus ipsum aliquyam eos consetetur nonumy sed. Erat dolore diam sed sit dolor volutpat at in in dolor sadipscing sed minim diam. Dolor volutpat aliquyam te vulputate tation sadipscing nonumy amet justo consequat suscipit sit nonumy amet takimata takimata vero. Et sed invidunt accusam duis et dolore autem labore ex sed sadipscing sanctus sed sanctus est sea sea option. In exerci dolor nobis dolore justo. Erat lorem consetetur dolor ut erat ex et augue sit consequat nisl no est et gubergren. Labore diam accusam et sed duo elitr ipsum sea. Facer nulla diam ut nonumy eros magna dolore dolores sanctus. Sadipscing ut kasd amet gubergren et nibh vero ea diam feugiat commodo eleifend duo sanctus elit diam nonumy adipiscing.

Sample Output H4

Diam stet gubergren consetetur tempor rebum veniam. Amet duo tempor lorem. Sed nonumy sadipscing duis duis dolor luptatum quod nulla magna. Sed voluptua dolores gubergren elitr molestie. Invidunt accusam eos dolores quod sit amet diam est ea consequat.

Et vel diam sed esse et aliquyam at amet lorem. Velit dolore invidunt et consetetur congue consetetur labore sit in sed et sanctus eos sit mazim dolor. Elitr consectetuer dolor eos hendrerit accusam ut ut sea dolore consequat sanctus. Accusam amet sit autem veniam zzril consequat erat voluptua accusam ad et et dolore veniam. Lorem velit eu labore duis dolor cum. Stet dolore duis vel nulla facer sit et possim dolores et labore et sadipscing ipsum elitr feugiat nulla. Aliquyam nobis luptatum justo aliquyam sed vero aliquam. Et eos tincidunt erat dolore diam consequat amet ea dolor nonumy invidunt sadipscing dolor duo ipsum. Tempor delenit kasd clita nonumy tempor ipsum takimata aliquam laoreet et elitr feugiat in esse dolores invidunt duis ut. Sed dolor sadipscing facilisi dolor diam nulla voluptua. Ullamcorper lorem amet et tempor.

Sample Output H3

Exerci diam aliquyam invidunt accusam et nonummy dolor accusam feugait suscipit. Ipsum duo vero ut ut sed accusam et laoreet diam. Stet et gubergren consetetur dolores. Vel no dolor sea sea sed nonumy wisi nonummy invidunt justo iriure euismod invidunt feugait diam sit iusto. Eos vel stet takimata. Sed sanctus no eos dolores aliquyam te sed gubergren dolores mazim lorem. Molestie amet at sed est nonumy ut ipsum et sit sit gubergren in tincidunt.

Duo dolores et. Feugiat ut dolor ea voluptua congue esse augue diam. Sea sadipscing no invidunt ipsum in dolores lorem delenit vero accusam nobis facilisi gubergren takimata stet consetetur. Eirmod erat dolor sit suscipit erat et et. Clita in et laoreet. Rebum consectetuer eirmod sea labore nam voluptua stet dolore consequat ipsum gubergren dolores rebum sed. Facilisis elitr eirmod dolor. Iriure ullamcorper sea et duis illum sed sit diam clita nonumy et dolor assum. Accusam amet consequat esse enim. Aliquyam no erat.

Sample Output H4

Gubergren mazim ipsum lorem et. Dolor stet invidunt voluptua aliquyam eirmod tempor voluptua dolore duis ad volutpat stet. Aliquam in est eos diam amet ea lorem. Amet commodo te assum dolore et est dolor et congue consequat eros labore. Sit diam clita feugait vel gubergren magna dolores sanctus erat elitr clita et consequat voluptua sed diam. Ad delenit tempor sadipscing accusam. Justo est voluptua eros facilisis eos clita magna dolor dolor no praesent elit.

Magna invidunt dolore nonumy diam. Est nonumy duo exerci accumsan amet facilisis rebum nonumy dolores. Et consetetur clita quod in ut vero labore takimata clita diam sadipscing. Eros facilisis et accusam adipiscing vero esse rebum sadipscing eos justo. No lorem est kasd et. Dolor at ut. Vulputate labore tempor quis lorem at sit lorem dolore nulla. Takimata ut amet sanctus. Eleifend kasd sanctus sea voluptua lorem dolor.

Sample Output H4

Facilisi ipsum eos sed consetetur minim dolores accusam sed eirmod lorem at. Rebum vel justo diam at te dolor dolore rebum no praesent iusto invidunt justo rebum eos ut et et. Sed hendrerit sanctus facilisi stet esse clita erat tempor. Takimata clita magna diam volutpat autem accusam ut sit laoreet takimata delenit quod consetetur est justo vero et dolor. Ut consequat labore sit sadipscing magna sanctus amet diam tempor. Vero rebum takimata dolor diam in. Dolor amet elitr molestie et.

Dolor labore feugiat dolor dolor kasd. No erat ut nonumy erat ut sit sit takimata consetetur feugait. Sed et justo ipsum elitr sit kasd vel feugiat est luptatum. Sit no lorem veniam. Gubergren sadipscing et id erat sit dolor laoreet feugiat kasd est elitr est ut. Consetetur et magna. Sed minim vero tempor. Takimata eos et magna luptatum consetetur invidunt ex justo euismod sed dignissim sea ea. Duo labore rebum dolor ut suscipit clita iusto consequat qui. Sed clita kasd. Ut justo takimata ea ea takimata rebum diam.