mrc logo mrc logo
  • m-Power m-Power
    What is m-Power?
    Overview Demos Build Process Case Studies Specs Pricing Trial
    m-Power Resources
    Overview How-To Videos Webinars & Podcasts White Papers Fact Sheets
  • Solutions Solutions
    What does m-Power build?
    Overview Database Front-Ends Reporting CRM Systems Business Intelligence Dashboards Inventory Management Mobile Apps ERP Enhancements Modernization Spreadsheets to the web MS Access to the web B2B/Web Portals Scheduling Embedded Analytics Web Forms Workflow Data Exploration Budgeting & Forecasting APIs and Web Services Db2 Web Query Alternative
    Solutions by Industry
    Overview Manufacturing Government Foodservice Software Vendors Logistics & Supply Chain Software Consultants Healthcare
  • Services Services
    Development Services Training Mentoring
  • About About
    Overview Partners Press Releases Careers Events Contact Blog
  • Support Support
    Support Home FAQ Documentation Customer Portal Enhancements Updates Roadmap Techblog
Try m-Power

m-Power Manual

Browse:

  • Home
  • Retrievals
  • Merge Data to PDF
Back to Manual

Merge Data to PDF

Occasionally, customers desire to have data from within their database be merged into an editable/interactive PDF file (Also known as PDF Forms). This documentation will walk you through this process.
Note: The output you generated is not intended to be fed back into the database. This template's sole purpose to quickly and efficiently generate pre-filled PDF forms for you.

Video Walkthrough

To begin, you must have access to an editable PDF file, as m-Power will not create one for you. Save this editable pdf file to your m-Power folder. mrc recommends placing this file in a new folder called "pdf" directly off of your root m-Power folder.

Next, build a retrieval application, choosing the "Merge Data to PDF" template. Be sure to select all tables and fields that you would possibly wish to utilize in your PDF Merge. Be sure to sequence by your unique key(s) and build the application.

Prior to running the application, open "Application Properties," and navigate to the "Map PDF Fields" tab.

Be sure to specify to your application, via the "PDF_File_Name" option, the location of your editable PDF file. Note that you can use ${mpower} to specify the root m-Power folder.

While here, be sure to set the "PDF_File_Variables" option to "Yes". This option will allow you to determine the specific input names used with your PDF file. Press Accept.

When you run the application, you will be presented with a listing of every editable field within the PDF file, as well as the input type (Text, Checkbox, etc..) associated with this input. Please print this page.

Next, return back to "Application Properties," and navigate to the "Map PDF Fields" tab once again. Seeing as you no longer need the PDF's input listing, you must change "PDF_File_Variables" to "No." Below this option you will find a listing of all of the fields with your application. Here you will assign the PDF's input boxes to your application's fields. You need not assign every field to a PDF input, but any fields not mapped will not be merged into your PDF output.

Once completed, press OK. When you run the application now, since your "PDF_File_Variables" flag is set to "No" your application will automatically generate a PDF file for you.

Note: Since the Merge Data to PDF is a retrieval, you may use standard retrieval URL syntax to call this application directly from another application. For example, lets say my Merge Data to PDF application was sequenced by Employ_Id. If I have a separate retrieval that lists all of my employee information, I could build a link that calls the Merge Data to PDF passing in slnk=1 and Employ_ID= the current employee id. When an end-user clicks on the link at run-time, the PDF would automatically be generated for the end-user.

Note: Also available in the application properties are the options to customize the PDF output filename and to flatten the PDF. Type the desired filename into the Output PDF Filename property, including the .pdf extension (i.e. output_name.pdf). The Flatten PDF Form property will make the PDF output not editable after output. If Preserve PDF Form is selected, users are able to edit the PDF form.

Created: July 7, 2014 | Modified: June 5, 2017

Search


Browse By Category

Build Process (13)
Starting with m-Power (8)
Retrievals (10)
Reports (15)
Summaries (4)
Maintainers (17)
Graphs (8)
m-Power Data Explorer (4)
General (24)
Calculations (5)
Utilities (9)
m-Power Administration (23)
Security (11)
Freemarker (6)
m-Painter (29)
Form Validation (5)
External Objects & UDFs (12)
Deprecated Documentation (23)
Bootstrap Templates (7)

Popular Tags

Prompt Screens Maintainer Retrieval mrc-Productivity Series Admin Compiling SQL Java Database Production Maintainers Dates Video Calculations Security Performance m-Painter Dropdowns Getting Started Summaries Record Selections Graphing Retrievals Parameters Freemarker RPG External Objects Bar Graphs Email Form Validation Report Application Properties Advanced Graph Properties Build Process Tomcat Excel Bootstrap Templates Graphs Data Dictionary Reports DB2 Administration App Properties Popular

See all tags »

michaels, ross & cole, ltd. (mrc)

Privacy Policy Cookie Policy Cookie Settings Notice at Collection Do Not Sell or Share My Personal Information

mrc (US)

2001 Midwest Road
Suite 310
Oak Brook, IL 60523
630-916-0662

mrc (UK)

Mortlake Business Centre
20 Mortlake High Street
London, SW14 8JN
+44-20-335-59566


© 2024 mrc. All rights reserved.