www.cloudformatter.com

cloudformatter format requests: 2,827,978    pages delivered: 7,406,298

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

Et nulla stet et tempor dolor sed amet in dolor amet sit at lorem diam euismod nostrud. Consetetur diam iriure eos. Consetetur amet dolore et labore amet ipsum sanctus odio. Nonumy gubergren sanctus. Sed vero sed invidunt lorem lorem voluptua voluptua autem accusam dolor et. Sed at sed dignissim at sit nonumy et et est sadipscing takimata amet vel erat sea molestie. Consetetur aliquyam dolor duo aliquyam et ullamcorper sed at clita justo eos.

Magna adipiscing clita et delenit stet consectetuer rebum volutpat nonumy accusam et aliquip erat ipsum et aliquyam. Accumsan lorem ut nonumy dolore dolor kasd at kasd molestie. Amet vero wisi sed clita voluptua consequat. Rebum in elitr ipsum aliquyam vel at ipsum. Dolore magna tempor at dolore. Zzril sed hendrerit sed duo hendrerit aliquam facer dolor lorem. Et ea et feugait quod soluta diam id luptatum gubergren amet ex et vulputate. Consetetur ex augue minim dolor sit. Hendrerit et molestie in ut veniam labore diam tempor diam lorem est gubergren no.

Sample Output H3

Tempor augue aliquyam amet molestie est et no no ut kasd sit eos voluptua molestie. Eu hendrerit elitr et accusam. Dolore feugait kasd in. Gubergren eum elitr lorem dolore dolor aliquyam ut duo kasd. Erat dolor dolor erat vel blandit aliquip accusam ipsum consetetur eirmod. In praesent sit ipsum lorem ut aliquyam diam eirmod consetetur et vero stet dolores invidunt sit sadipscing sadipscing ea.

Rebum stet hendrerit eirmod in vulputate lorem est hendrerit ipsum. Et vero luptatum magna autem ea rebum lorem eirmod voluptua nibh labore aliquip erat. Wisi vel sadipscing sed gubergren vero justo ea nibh dignissim magna amet nam. Magna molestie erat nulla justo sit accusam justo sanctus autem clita. Augue aliquyam exerci sanctus sed labore no clita et invidunt diam veniam eros et erat sed tempor. Ut ea tempor at takimata kasd no facilisis amet feugiat erat sit in facilisis sit magna aliquyam velit.

Sample Output H4

In imperdiet euismod consetetur id rebum dolor sea amet wisi lorem sadipscing vel consetetur dolor. Invidunt nonumy lobortis ut ipsum magna ut option et voluptua dolor. Voluptua kasd elitr et invidunt duis ipsum nonumy no lorem autem vero suscipit dolor eros ipsum aliquyam ipsum. Sit et eirmod consetetur sed magna iusto sea. Minim at kasd dolore et adipiscing magna diam ut et dolor et te takimata eirmod. Vulputate sit te dolor consetetur ea et.

Stet dignissim nonumy dolores sit sit amet sanctus rebum sit consequat tempor aliquyam takimata vero et ipsum. Sit labore ea est no lorem diam. Ut clita dolore amet duis accumsan magna vulputate takimata erat elitr vero ut dolore sit diam. Kasd et sit no eirmod consequat nulla voluptua invidunt eos zzril. Nibh kasd nonumy doming autem dolores laoreet amet ipsum dolore no takimata takimata amet consetetur.

Sample Output H4

Sed ea duo eirmod no ipsum amet hendrerit diam sit sadipscing lorem duo exerci ut. Diam commodo justo tempor dolore vulputate et sadipscing luptatum nulla. Nulla sadipscing blandit nonumy hendrerit autem stet consetetur exerci kasd no. Clita minim takimata diam et kasd at. Et hendrerit elitr dolore et at. Cum molestie amet diam et dolor accusam minim doming sea.

Eos sanctus et vero dolor duo. Diam accumsan esse justo amet sed sadipscing. Ut et dignissim amet consequat. Eirmod diam sed accumsan at diam. Te dolor elit eu clita wisi duo erat. Aliquyam diam stet dolor tempor dolor rebum et velit stet duis erat dolor quod at sanctus diam. Dolore sit eos. Voluptua duis sit quis voluptua no consequat et nulla at sadipscing labore elitr elit esse dolor sit invidunt augue. Justo duis et vulputate at labore tempor nibh placerat nihil consequat commodo adipiscing diam rebum. Esse diam at sanctus stet sanctus dolores est ea illum dolor rebum sit eum. Et dolore kasd labore eirmod vero eu amet.

Sample Output H3

Erat tation labore vero sea adipiscing lorem dolores vero tempor sanctus. Et lorem diam amet lorem duo kasd et sed voluptua ipsum sanctus dolor et tincidunt. Rebum sed sanctus. Accusam dolor ut. Labore dolore sea vel lorem ipsum diam. Justo sanctus kasd amet eirmod tempor sit rebum ex ea dolore justo duis diam ut sed. Sanctus ut ea stet et et nonumy ea amet sanctus vero gubergren aliquam et sadipscing eos dolore.

Eos rebum lorem diam nam te est blandit. Et justo sanctus. Autem dignissim minim delenit augue sed ipsum et velit dolore labore dolor erat est ut amet. Odio nonummy ipsum delenit suscipit magna soluta tincidunt eros dolore clita est et elit. Est amet sed ipsum ea consequat qui. Nisl dolore dolor et aliquip dolor hendrerit accusam invidunt dolores autem erat tation invidunt eros consetetur ipsum rebum diam. Dolores diam erat et vel facer invidunt sed et invidunt sit elitr invidunt ut tempor duo tempor lorem. Eos lorem diam voluptua eirmod et diam sadipscing justo gubergren invidunt consetetur et sea commodo invidunt minim dolore.

Sample Output H4

Gubergren erat duis delenit lorem illum accusam sadipscing aliquyam et accumsan sed vulputate stet et voluptua kasd ea laoreet. Nulla erat accusam duo takimata elitr erat ipsum ut est nulla invidunt est. Sed amet labore at voluptua laoreet sit sit clita lorem justo autem odio no placerat sadipscing voluptua dolor sed. At vel takimata feugiat sed sea nonumy invidunt. At at esse consequat at et iusto eirmod ut. Lorem magna magna justo dolores ad clita diam tempor clita stet aliquyam aliquyam. Hendrerit ipsum veniam stet odio soluta justo. Eu iriure vulputate vel feugiat accumsan sadipscing stet ut sanctus diam eos tempor diam magna dolor in. Erat vel ipsum. No sit gubergren elitr kasd at erat justo esse sit tempor. Autem nonumy amet lorem invidunt nonumy sit duis diam vero vulputate sanctus nulla dolor eos eu elit nisl vero.

No eirmod elitr invidunt velit nulla. Sed ut ipsum nisl eirmod dolores. At clita est erat diam nonumy cum consequat ut nonumy. Et aliquyam ipsum eum eirmod sed consetetur tempor sed dolore accumsan. Erat rebum nibh at sea tation soluta duo justo ut feugiat ea eirmod voluptua hendrerit dolores sed aliquyam. Ipsum dolor eos est dolor ea rebum consequat voluptua. Dolor no rebum praesent lorem tempor consequat doming facilisis dolore invidunt dolor. Suscipit et volutpat eirmod sadipscing clita tempor sed sea kasd sit diam sanctus invidunt gubergren. Sed augue rebum laoreet aliquam dolores dolore eu lorem ut eirmod tempor sed. Erat sea sit duis voluptua facilisis aliquyam nostrud accusam adipiscing diam lorem dolore.

Sample Output H4

Euismod ea consectetuer vero aliquyam dolores. Lobortis exerci dolore in feugait sit eirmod vero feugait in justo sed quis stet magna tincidunt sadipscing. Ipsum amet mazim commodo amet aliquam vero labore stet in accusam dolore ipsum. Eleifend invidunt invidunt ipsum et takimata accusam erat magna sit voluptua ipsum ea dolore vero volutpat. Nulla et gubergren exerci commodo nulla gubergren voluptua ea rebum feugait eirmod et. Eirmod nonumy ut exerci at dolor duis nostrud tempor sadipscing tation vel iriure et ipsum ut ipsum kasd.

Dolore erat sadipscing sit lorem sed voluptua vero sit sadipscing dolore sed elitr sadipscing eirmod elitr. Stet ipsum et sed amet diam consectetuer est takimata. Accusam eos stet. Augue elitr labore in sadipscing sit elitr feugait et at et facilisi vero stet kasd dolor duo dolores. Hendrerit diam augue amet sit magna nonumy sadipscing erat hendrerit. Sanctus tempor nonumy et dolore. At invidunt consetetur sit molestie et. Takimata augue veniam ad tempor.

More Sample Output H2

Consetetur lobortis veniam diam accusam lorem sadipscing blandit consetetur lorem dolor vel dolore rebum et amet erat ad magna. Diam luptatum takimata labore sea vulputate kasd elitr accusam et vel nonumy. Molestie iusto ut sadipscing et sed dolore nostrud et at vero. Sit velit sanctus tempor aliquyam elitr sit facilisi sea. Imperdiet dolor tempor ipsum praesent nonumy amet eum vero sed eirmod takimata sit nulla duo dolor consectetuer esse magna.

In praesent dolore in ipsum eos est elitr sed vel diam lorem feugait. Vero duis vel consetetur facilisis gubergren sed dignissim amet elitr stet id delenit ipsum nam et amet. Molestie laoreet lorem nonummy luptatum vero justo elit dolor dignissim autem et consequat voluptua. Consectetuer clita nulla ea sed dolor rebum elitr accusam odio ipsum voluptua labore. Ipsum lorem odio kasd accusam eu duo.

Sample Output H3

Et sadipscing vero amet consequat sadipscing voluptua clita lorem tempor. Dolores laoreet rebum gubergren elitr mazim qui et labore vero vel nobis zzril at in labore. Et amet duis ipsum. Aliquam ullamcorper eos consectetuer takimata amet lorem amet in imperdiet eos ea mazim amet. Sit lorem sed stet dolore est consequat qui feugait sea justo sed. Invidunt diam at ullamcorper est. Takimata nonumy ipsum facilisi. Et ut eirmod amet invidunt dolor aliquip sit. Consetetur iriure ipsum accusam option qui accusam et sed dolore elitr tempor nulla et. Lobortis et lorem consetetur wisi est sit te.

Elitr eu et stet sed magna voluptua ipsum sed rebum accumsan dignissim est gubergren lorem dolor vero. Aliquyam ea stet nulla consetetur nonumy amet ea nulla sed dolore elitr exerci sit facilisi sadipscing iusto. Et feugiat voluptua. Molestie justo erat kasd lorem amet dolores nonumy nonumy feugiat magna duo diam. Lorem magna lorem. At et ut invidunt justo eirmod stet aliquam dolor nibh et et ipsum tation takimata tempor lorem clita soluta.

Sample Output H4

Sit sed placerat sit ipsum consetetur id elit vero sadipscing quis et ipsum takimata iriure dolore. Eleifend ullamcorper diam lorem molestie est consectetuer lorem sit diam amet ut option invidunt. Clita amet erat invidunt nostrud duo et consetetur. Elitr assum amet clita dolor clita lobortis. Ipsum sit clita sadipscing clita voluptua nulla sea sanctus doming qui est et erat. Takimata dolor sit lorem kasd voluptua assum illum duis wisi dolor ut amet qui nonumy esse velit vel clita. Ea at vel sea et dolor. Accusam at magna nonumy.

Quis facilisis ea sanctus sanctus nulla diam sit esse stet sit et lorem diam placerat duo sanctus aliquyam. Tempor lorem nihil dolore clita nonumy volutpat no dolor dolore diam cum voluptua labore gubergren. At vero consequat amet sed labore eum kasd clita takimata. Aliquip quod invidunt lorem labore labore justo. Ipsum stet nihil dolor dolores lorem lorem augue dolor commodo nonummy et magna diam. Dolores sadipscing iriure et elitr invidunt. Amet justo velit et et duo kasd erat vulputate. Ullamcorper nonummy amet dolor imperdiet accusam et aliquyam sed voluptua erat magna lorem diam.

Sample Output H4

Velit duo doming elitr duo nostrud diam aliquyam amet feugiat rebum accusam ut sit dolor eos accumsan at. Molestie dolore gubergren et est voluptua dolore rebum aliquyam elitr. Elit justo et amet id elitr dolor dolor sit consetetur in ea et duo. Doming erat nostrud nisl sanctus lobortis aliquyam sanctus. Sadipscing delenit lorem diam et ex autem. Eirmod sanctus dolor at tempor sanctus nonumy no accusam voluptua suscipit sit gubergren et gubergren dolor vel congue. Et autem vel minim in quis no ipsum erat consetetur sed dolore. Aliquyam erat sea nulla sea erat facilisi accumsan aliquam te consequat vel liber lorem facilisis voluptua et et dolore.

Sanctus feugiat tempor takimata et amet erat ipsum kasd rebum sadipscing amet accumsan tation eirmod dolore sit stet. Diam elit sed sit ea labore dolore te. Voluptua no dolore vel erat diam dolor vel diam. Et erat euismod liber exerci amet sadipscing dolor magna delenit assum et in et elitr sit. Delenit sit sanctus vero elitr tation dolor sed sit amet elitr dolores dolore. Sed illum lorem aliquyam lorem erat erat accusam est et. Sit amet stet. Ipsum dolore nulla soluta feugiat sanctus sit blandit sed ullamcorper sed et. Voluptua delenit consectetuer invidunt et gubergren dolor ut aliquyam lobortis nonumy rebum amet quod. Labore elitr dolor veniam.

Sample Output H3

Dolor volutpat erat consequat ipsum. Nonumy dolore est odio dolore rebum et erat no voluptua sit cum invidunt elit velit labore. Tempor molestie et clita kasd dolor lorem duo erat gubergren eum quis ipsum dolores et. Gubergren at ipsum labore duis in sit et lorem eleifend erat sit tempor. Molestie magna eum lorem rebum amet ut et erat congue amet. Ut luptatum no option sanctus est hendrerit diam voluptua nostrud. Lorem commodo erat ipsum lorem vel eu diam. Magna et dolore rebum et diam tempor eros feugait sea amet eos ut aliquyam vero ut takimata duis. Vero dolor sed lorem vero ad ea sanctus invidunt tempor odio eirmod dolore sea elitr. Aliquyam duis dolor ad molestie sit dolores wisi sit ad dolor ea dolor facer ut.

Takimata et eirmod luptatum vero sea amet ipsum. Duo eirmod tempor et sit ea elitr et sadipscing qui kasd duo eirmod eos erat duo consequat eu et. Laoreet augue sadipscing sed justo dolore sea eos laoreet takimata sed erat aliquyam clita dolore praesent nonummy ea sit. Nonumy et ipsum lorem dolore zzril dolor sadipscing luptatum ipsum id dolor blandit dolor. Ut diam gubergren dolor ut sanctus dolor kasd invidunt sed delenit. Consetetur vero justo.

Sample Output H4

Sed dolores clita. Ea sadipscing sit nulla sadipscing ea et sea elit minim duis augue amet consetetur nostrud dolores. Luptatum facilisis et rebum clita dolore duo vero takimata lorem eum velit. Ut luptatum magna et no dolor ea eos gubergren laoreet. Sanctus tincidunt duo dolor sadipscing ea aliquyam et sadipscing augue nulla gubergren quis aliquyam invidunt diam diam ea dolores. Voluptua dolore et sed sit nonumy esse justo ut. Aliquyam sanctus amet at sea eirmod eirmod et ut nulla elitr in.

Et invidunt rebum. Laoreet vulputate tempor ut at magna lorem ut facer sanctus sanctus lobortis kasd gubergren gubergren eos sit vero. Justo et dolor justo clita aliquyam sea diam. Diam sit ipsum lorem et nonummy et in dolores est dolore. Tempor tincidunt gubergren dolore kasd delenit luptatum. Tincidunt et dolores. Autem consetetur diam tincidunt nam vero sed sit eros zzril minim possim dolores duo dolor dolor sadipscing. At dolor sadipscing sanctus et ad zzril invidunt dolor et sea sanctus sed sit nobis facer sadipscing feugiat molestie.

Sample Output H4

No sit rebum sadipscing nisl clita at magna gubergren et ipsum eirmod suscipit gubergren aliquam velit. Erat sadipscing at qui sanctus sed diam nonumy. Sit tempor dolor elitr rebum zzril. Lorem gubergren dolores at clita sed aliquip tempor sanctus sed aliquyam stet dolores lorem labore erat et. Amet erat dolores blandit consequat labore vero iusto justo duis vulputate tempor lorem. Amet invidunt at lorem.

Iriure illum iusto eirmod enim ea magna diam et eu sanctus no sed eos amet lorem invidunt. Elit lorem et sea sea et magna justo et justo consequat adipiscing stet labore nulla. Et duo sanctus erat est aliquyam tempor dolor. Voluptua ullamcorper minim sea veniam nulla erat consectetuer doming vulputate. No est amet praesent et doming sadipscing ut commodo nostrud lorem tempor aliquam at et diam congue. Kasd elitr sit et. Ipsum et option kasd sea tincidunt. Sit dolores wisi dolor et duo hendrerit diam odio diam sit id dolores elitr dolor. Dolor sit aliquyam eirmod duis dolor ut sit consetetur tempor vel sea ipsum voluptua amet ut.