Solved

Export Field To PDF FM

Posted on 2013-12-06
3
627 Views
Last Modified: 2013-12-08
What is the best way, if possible, to export the field contents and save the contents into a PDF format?
0
Comment
Question by:PachecoPrimo
  • 2
3 Comments
 
LVL 4

Assisted Solution

by:historychef
historychef earned 500 total points
Comment Utility
Use the Save Records as PDF script step (available in FMP 8 and later). Create a layout containing only the field(s) you want to export, then go to that layout and isolate the records you want to export (using a Find or a Go to Related Record step). Your complete script will look something like the following:
#  If you plan to export multiple records, make the following a List layout
Go to layout ["PDF Export Layout"]
#  Isolate the record(s) you want to export
Perform Find [Restore]
Save Records as PDF []
#  Optional step to return to your original layout
Go to layout [original layout]

The Save Records as PDF script step optionally allows you to specify the output file name (and path), whether to create a new file or append this export to an existing PDF file, set security options, and set initial view parameters for the PDF reader.
0
 

Author Comment

by:PachecoPrimo
Comment Utility
Hi historychef,
Thanks for your comment. I am trying to create a pdf initially and then append more records to it via a loop.  How can I store temporarily the initial pdf, so that the remainder pages can be added?
Thanks
0
 
LVL 4

Accepted Solution

by:
historychef earned 500 total points
Comment Utility
If you check "Append to existing PDF" in the Save Records as PDF script step, FileMaker will create the file if it doesn't already exist, and append new pages to it if it already exists. Note that you cannot append individual records on the same page: every subsequent execution of the script will start a new page, including headers and footers, if any. Here's an example, produced by executing the same script twice. If you want to change the headers or footers on subsequent pages, you can create different layouts for the first page and for the other pages.

I suggest you play around with the script step until you get what you want.
Test.pdf
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
Users will learn how resize a batch of photos from a single command in Photoshop via Photoshop's Image Processor. Open up an Image you'd like to resize in Adobe Photoshop: Adjust the image size according to your preferences. Image > Adjustments > …
Users will learn how to set proper sequence settings, scale images, paste attributes, add transitions, fades, and music. Open up Final Cut Pro 7 and Create a new Project: Set the Sequence Settings. a) Click File > Easy Setup > Format > Apple ProRe…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now