{"id":7853,"date":"2020-03-24T15:41:45","date_gmt":"2020-03-24T22:41:45","guid":{"rendered":"https:\/\/minisoft.com\/support\/?p=7853"},"modified":"2020-03-24T15:41:45","modified_gmt":"2020-03-24T22:41:45","slug":"adding-a-multi-page-pdf-to-a-document","status":"publish","type":"post","link":"https:\/\/www.minisoft.com\/support\/adding-a-multi-page-pdf-to-a-document\/","title":{"rendered":"Adding a Multi-page PDF to a Document"},"content":{"rendered":"\n<p>Some clients want to add a PDF of one or more pages at the end of an eFORMz-generated document. Adding a one-page PDF is straightforward, but more than one page requires a specific setup. This article explains how to set it up.<\/p>\n\n\n\n<p><strong>Prerequisites<\/strong><\/p>\n\n\n\n<p>PDF files must be in a known location with a known file name. A known file name means either a fixed name or a name that can be determined using form data. For example, if PDF files are stored in <em>\/minisoft\/input\/pdf<\/em>, and PDF files have the name <em>&lt;Year>-&lt;PONumber>.pdf<\/em>, a project that creates PO forms can attach a PDF by including the file <em>\/minisoft\/input\/pdf\/&lt;Year>-&lt;PONumber>.pdf<\/em>. For example, \/minisoft\/input\/pdf\/2020-123456.pdf.<\/p>\n\n\n\n<p><strong>Creating the Project<\/strong><\/p>\n\n\n\n<p>1. Create a new project for your document. Add your document as usual with one or more forms.<\/p>\n\n\n\n<p>2. Add a form to render the PDF document. Create a variable in the form, PDFFileName, and set it to the path and name of the PDF file. How you do this depends on your configuration and file naming system.<\/p>\n\n\n\n<p>3. Add a Document Template, a table, and a paragraph. Right click the paragraph &gt; Add image &gt; Image from file using variable.<\/p>\n\n\n\n<p>4. In the window, select the variable PDFFileName. Set the end page beyond the maximum number of pages that the PDF file will have. Click OK.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"612\" height=\"209\" src=\"https:\/\/minisoft.com\/support\/wp-content\/uploads\/2020\/03\/PDFProject3.jpg\" alt=\"\" class=\"wp-image-7856\" srcset=\"https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/PDFProject3.jpg 612w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/PDFProject3-300x102.jpg 300w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/PDFProject3-150x51.jpg 150w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/PDFProject3-250x85.jpg 250w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/PDFProject3-550x188.jpg 550w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2020\/03\/PDFProject3-527x180.jpg 527w\" sizes=\"(max-width: 612px) 100vw, 612px\" \/><\/figure>\n\n\n\n<p>5. Save the project. When the document is created, the entire PDF will be appended to it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some clients want to add a PDF of one or more pages at the end of an eFORMz-generated document. Adding a one-page PDF is straightforward, but more than one page requires a specific setup. This article explains how to set it up. Prerequisites PDF files must be in a known location with a known file [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[600,599,598,597],"_links":{"self":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7853"}],"collection":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=7853"}],"version-history":[{"count":6,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7853\/revisions"}],"predecessor-version":[{"id":7862,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7853\/revisions\/7862"}],"wp:attachment":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=7853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=7853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=7853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}