Solved

Export Field To PDF FM

Posted on 2013-12-06
3
630 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
ID: 39703383
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
ID: 39703688
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
ID: 39703774
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Package creation on OS X uses the PackageMaker utility installed as part of the XCode development suite ( on the OSX Client CD).  Packages can be installed as part of the machine build process, or later using Apple Remote Desktop. They are generally…
Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
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 > …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

896 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

15 Experts available now in Live!

Get 1:1 Help Now