www.cloudformatter.com

cloudformatter format requests: 6,323,205    pages delivered: 14,377,675

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

Nibh eos sanctus consequat consetetur dolores et. Molestie consetetur sed clita autem et et consetetur erat nonumy soluta justo dolor elitr justo nonumy tempor sit dignissim. Diam voluptua assum nonummy diam no est ex ipsum imperdiet sed diam magna accusam et est erat invidunt. Dolore est iriure nonummy est exerci dolores. Accusam molestie et ex voluptua. Sed sit suscipit invidunt est et in et dolore veniam aliquip gubergren nostrud.

Sea delenit in amet feugiat eos amet erat et et et in justo commodo at magna dolor dolor quod. Eros et ea diam ea ipsum stet eos et diam consetetur ipsum euismod sadipscing augue. Vero amet no sadipscing clita sit vero takimata justo ipsum dolores consequat est consequat lorem nonummy justo. Dolores et et assum ut dolores no sed. Elitr eos dolores et dolore nonumy nam in nulla eirmod eleifend dolor vero justo iriure sit dolor.

Sample Output H3

Duo consequat vulputate dolores erat duo nonummy dolore elitr ut dolore sit soluta nisl. Et labore est eos odio duis dolores. Magna nonumy lorem dolores gubergren autem in consequat. Stet sed sed duis vel sanctus tempor dolore. Eros enim est dolore. Dolor tempor dolor tempor no wisi tempor no qui qui sea dolores dolor kasd consectetuer dolores. Duo et vel dolor at sadipscing amet ut. Dolores sit duo ut. Ipsum diam rebum facer. Takimata sed et et ea kasd elitr dolore lorem enim in iriure adipiscing invidunt consetetur dolor. Dolor zzril facer dolor diam dignissim adipiscing ipsum ipsum placerat.

Sanctus diam labore accusam tation elitr ipsum ut. Dolores elit labore ipsum facilisi ipsum ut et assum dolore sed est kasd eirmod luptatum lorem duo. At volutpat vero rebum eirmod suscipit sea vel sanctus nonummy diam at consetetur. Sit sadipscing ut dolore tation elitr et. Sit sed dolore nulla tincidunt. Eos nonumy commodo accusam nonumy iriure.

Sample Output H4

Diam esse nonumy sadipscing sed consetetur sadipscing et dolore enim. Eirmod gubergren eos. Adipiscing quis elitr dolor ipsum takimata. Veniam erat magna magna ullamcorper dolores. Justo ut dolore lorem. Ipsum magna odio ea diam eos erat et sed et dignissim sed dolores lorem invidunt. Et sit accusam. Invidunt voluptua no ea kasd ipsum blandit sed zzril stet diam velit. Vero esse diam rebum.

Sed at in in id consetetur odio dolor et zzril. Iusto diam magna sed. Diam justo et. Duo eos assum est rebum feugait ut autem. Et erat ipsum labore dolore sed eirmod ut tempor consectetuer voluptua nonumy amet no euismod sanctus sed nonumy. Sed vel vero duo sed accumsan kasd nonumy liber labore vero labore no diam takimata. Sit sanctus eirmod tempor ipsum tincidunt sea nonumy vulputate lorem dolor dolores. No eirmod nonumy accusam rebum tempor aliquyam soluta duis clita kasd. Justo at et rebum nihil rebum augue dolore stet sadipscing adipiscing tempor soluta justo et dolore molestie.

Sample Output H4

Voluptua at sadipscing dolore sit ut rebum erat facer justo kasd diam consetetur nostrud nibh stet rebum. Voluptua sed volutpat ut est sit et. Consequat molestie nibh sanctus vero aliquyam justo dignissim et. Erat duo justo erat duis justo sea quod nobis ipsum dolor et et. Et est imperdiet amet in hendrerit et elitr iriure velit labore kasd amet. Et dolore dolor exerci sed kasd labore dolor accusam magna stet praesent voluptua et erat stet. Kasd feugiat et eirmod et ipsum ut ipsum nibh euismod odio voluptua dolore augue iusto lorem et. Magna amet et et accumsan liber accusam ut et odio velit ea te accumsan ad. Nonumy rebum sadipscing ipsum dolor stet nisl consetetur sit in stet ullamcorper in dolores.

Lorem sed dolor stet sea quis elitr qui adipiscing eirmod ipsum commodo exerci vero. Dolor et nam. Sea clita at amet et veniam et wisi lorem eum dolore rebum et. Nulla kasd amet vero. Ipsum id justo ut illum ea te. Consequat at voluptua ea tempor dolore kasd enim invidunt sed sed ut gubergren justo ipsum tempor amet nonumy at.

Sample Output H3

Dolore ea amet lorem et ipsum aliquyam justo nisl. Invidunt rebum ullamcorper tempor diam eos sed ullamcorper dolore et dolore at praesent sanctus. Et blandit sit amet sanctus dolor lobortis sanctus est dolor no amet. Et consequat nulla stet consequat. Voluptua amet hendrerit vel hendrerit. Dolores ipsum sadipscing eu accusam accumsan et amet dolores duo consectetuer ipsum eos erat accusam. Sea eirmod gubergren magna eum amet eum ea gubergren duo consetetur illum aliquyam elitr sed est aliquip.

Consetetur lorem ut ut erat diam amet sed eu clita sed diam justo. Erat eirmod nonumy. Sed hendrerit ipsum lorem accumsan diam dolor aliquyam feugiat ea feugait vulputate ea autem ipsum et. Vel illum justo diam lorem et suscipit. Sanctus lorem diam eros takimata sit eirmod. Sanctus voluptua justo sadipscing justo vero dolores dolore amet magna invidunt velit.

Sample Output H4

Stet hendrerit ut et ea lobortis invidunt clita at sit dolor sed illum. Sadipscing lorem nonumy ipsum odio et no lobortis aliquyam sed vero eos et eirmod tempor. Amet et illum exerci dignissim sit eros mazim lorem ut eirmod consetetur sit sanctus aliquyam kasd. Dolor et sit at eirmod rebum sadipscing takimata sanctus augue sadipscing no iriure molestie lorem in ut sit. Minim consetetur laoreet hendrerit imperdiet kasd. Et consetetur dolore. Vero nonummy rebum et sed lorem at lorem. Est lorem ut stet nonumy et duis clita rebum diam qui ea tincidunt dolor enim erat et. Duo gubergren consetetur iriure ipsum at et at elit enim nulla magna labore dolore tempor gubergren nisl accusam. Nulla cum stet ut dolore nonumy est. Mazim eu rebum nulla est ut labore eos vulputate dolor.

Eros aliquyam feugiat ipsum ipsum labore. Diam et erat rebum iriure kasd tempor consectetuer elit et dolore. Tincidunt sadipscing clita feugait nulla dolor. Lobortis sit blandit stet. Dolor dolor rebum amet in accusam consetetur ipsum sadipscing molestie adipiscing ipsum enim dolore. Illum duo odio dolor sit rebum molestie et rebum lorem diam. Qui duo duo diam. Est feugiat praesent volutpat ipsum invidunt est nulla. Dolor justo ipsum tempor ea.

Sample Output H4

Illum sit vulputate ullamcorper aliquyam dolore labore dolore diam labore ut dolore et. Erat voluptua wisi aliquyam sadipscing autem qui. Ut magna magna aliquyam nonumy amet wisi dolores suscipit amet kasd erat amet labore amet zzril vulputate clita eu. Sed dolore sit dolor euismod eirmod dolores sadipscing vero ipsum sanctus erat volutpat illum lorem sanctus. Sit erat gubergren et sed. Consequat kasd amet eos nonummy te lorem. Aliquyam amet erat no stet aliquyam congue iusto sit sit odio consetetur sed diam stet. Et justo sadipscing molestie nonumy. Lorem ipsum rebum et lorem diam elitr ipsum. Labore takimata at voluptua dolor ipsum vero. Sadipscing rebum stet.

No et suscipit diam commodo. Takimata vero luptatum stet duo invidunt ut ea. Amet ea suscipit. Laoreet quis tempor suscipit kasd nobis luptatum euismod elitr. Sit iriure diam.

More Sample Output H2

Nonumy dolores et accusam kasd et in kasd ut kasd ullamcorper magna. Tempor erat doming kasd velit eleifend dolore tempor voluptua gubergren diam voluptua vel sea. Vel ea dolor ullamcorper aliquam accusam voluptua nihil dolores sadipscing. Accusam dolore ex ut amet vulputate magna nonumy lorem sit rebum sea ipsum amet diam sit. Ullamcorper gubergren amet veniam gubergren nonumy sed lorem dolor lorem sit at kasd sit diam dolores sadipscing. Sit soluta sed illum praesent iriure voluptua dolore nonumy aliquyam euismod amet sit erat at.

Takimata lorem nobis vero elitr sed dolores lorem vulputate magna rebum consetetur amet invidunt sed eu sit diam. Accusam et te duo labore aliquyam ut et. Vulputate sed et amet ipsum sed erat duo sed eirmod voluptua vero hendrerit eum magna zzril clita iriure consetetur. Molestie diam amet diam rebum hendrerit justo magna dolore rebum sadipscing in. Est dolore doming no augue sit qui et in molestie stet rebum.

Sample Output H3

Diam dolore qui gubergren tation gubergren ipsum imperdiet labore minim. Lorem sanctus sea diam ut nihil. Qui sit stet consectetuer cum placerat dolores imperdiet tincidunt et sadipscing ipsum vel voluptua gubergren aliquyam sadipscing. Ea dolor tempor aliquyam accusam no. Aliquyam gubergren gubergren. Iriure elitr accusam sed ea amet qui. Duis voluptua erat sadipscing kasd ut et blandit illum et vulputate vel at et liber. Dolor feugait magna erat veniam sit.

Vero accusam erat clita et duis erat dolore sed ipsum commodo sea invidunt no in consetetur. Elitr dolor diam qui elit ea nulla voluptua sit rebum consetetur. Diam duis erat eirmod dolor et diam takimata lorem nonummy illum eirmod. Ipsum eos dolor eum labore consectetuer et elit eos et. Sed duis exerci. Et sanctus accusam gubergren consequat te ut est et odio nonumy nonumy nisl eirmod magna erat et sed consetetur. Hendrerit amet in dolores facilisis sed no esse dolor erat aliquyam et.

Sample Output H4

Et ipsum tation velit commodo lorem duo duo et sed nibh imperdiet illum sadipscing ipsum elitr et. Dolor sadipscing ipsum nonumy illum lorem lorem hendrerit. Amet sed sed nostrud ipsum elitr justo ipsum iusto. Lorem tation amet imperdiet vero erat blandit. Duo veniam dolor eu voluptua sit amet justo eirmod et aliquam. Accusam ipsum gubergren et duo sed nulla amet elitr qui stet consetetur. Takimata duo et eos wisi vero sadipscing at duo et sed dolores diam tempor doming. Vel et commodo. Tempor dolor amet commodo.

Sit voluptua dolore duis vel soluta facer dolores ipsum. Veniam amet et. Sed et et nihil dolore amet duis iriure ipsum vero sea. Eu ea erat gubergren velit eirmod consetetur invidunt nonummy tempor gubergren est tempor consetetur id justo ut. Consequat nonumy et et esse dolor eum ipsum dignissim. Sed eos vero clita lorem dolor justo facilisis nonumy tation.

Sample Output H4

Et invidunt tempor labore erat ad ullamcorper ut ipsum nonummy invidunt option diam ipsum ipsum duis autem zzril. Dolore duo clita. Lorem stet congue justo. At justo zzril ipsum takimata gubergren in aliquyam sit sit. Diam erat ea elitr gubergren ipsum quod et dolor est aliquyam aliquyam tincidunt placerat diam aliquyam facilisi erat. Sea dolore erat sanctus aliquyam odio. Aliquam iriure autem. Ut ex amet eu nonumy lorem.

Suscipit consequat aliquyam laoreet labore ea tempor eirmod voluptua et aliquyam accusam aliquyam amet stet elitr dolores enim eos. Nonumy diam stet dolor elitr accusam justo. Invidunt sed dolor dolor velit lorem nonumy dolore. Elitr rebum accumsan consetetur consequat est ipsum sanctus vero labore ut in invidunt amet in eos duo ea. Esse tempor duo sit facilisis esse dolores et vero et cum kasd consetetur aliquyam. Et sit ut ut est adipiscing.

Sample Output H3

Autem vulputate ut aliquyam qui ullamcorper. No justo molestie et feugiat et. Dolor amet vero ipsum ullamcorper eos assum at placerat. Nostrud stet at elitr ea no gubergren at accusam stet justo sed gubergren est luptatum in lorem. Labore accumsan clita dolore sanctus ad amet dolore amet in. Sadipscing lorem et amet nibh dolor takimata adipiscing nobis sed gubergren at no ullamcorper et eirmod eos ut sanctus.

Eum diam sed dolores erat. Tation tempor sadipscing. Gubergren invidunt duis erat gubergren magna vel et nobis id sea ipsum accusam ut kasd. Ea ut consetetur sed. Vero voluptua stet duo no autem diam nobis luptatum enim sed exerci et blandit. Sadipscing feugiat rebum hendrerit gubergren et est accusam lorem iriure justo soluta sanctus voluptua. Est consequat dolores. Eu diam odio.

Sample Output H4

Dolores suscipit amet amet. Ipsum sea sanctus magna. At liber diam tempor amet labore et diam sadipscing eos vel. Accusam at in quis sea lorem diam ut amet iusto amet et voluptua est tempor est. Tempor stet delenit. Tempor zzril tempor ea. Dolores hendrerit tation et stet et lorem tempor dolore sea sea dolore vero ea ea.

Et dignissim sed kasd consetetur vel duo sadipscing sanctus dolore eum dolores dolore. At rebum nonummy velit dolore sadipscing. Sed aliquyam sed et at dolor dolor vel no ea autem voluptua et feugait ad. Invidunt eos erat. Nihil tation et lobortis dolor erat dolore luptatum dolores. Erat nobis erat gubergren. Laoreet clita nonumy iusto labore et doming dolor duo dolor voluptua.

Sample Output H4

Nulla diam eu luptatum lorem elit delenit accusam eum accusam accusam gubergren et dolore ipsum stet velit dolore. Vero magna sed clita rebum duo. Vero ipsum gubergren lorem. Voluptua sed erat no nulla velit stet eos. Aliquyam hendrerit consetetur placerat duo augue ut nonumy. Labore erat ea nonumy amet et praesent sed kasd kasd at consetetur dolore eu et quis consetetur. Blandit eos accusam amet dolore labore. At facilisi ipsum possim sit est euismod invidunt est sadipscing clita gubergren ut et kasd et autem. Magna takimata et wisi stet nihil diam eos eum ex ea voluptua et ipsum magna no. Eos aliquip ut invidunt gubergren nonummy takimata sanctus invidunt sit justo dolore dolore et magna. Sed nibh diam adipiscing amet consetetur erat exerci takimata no erat accusam quis lorem.

Sea ea aliquyam. Vero invidunt hendrerit sit duis diam kasd aliquip. Clita ipsum vero labore duo luptatum sanctus lorem iriure eos tempor invidunt feugiat stet dolor aliquip est diam. Sit diam et wisi stet gubergren. Sanctus sed zzril. Sit vel duo cum amet kasd sanctus diam kasd eirmod diam vero et hendrerit elitr magna in voluptua.