[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Export Field To PDF FM

Posted on 2013-12-06
3
Medium Priority
?
679 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 2000 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Yesterday Apple introduced their revolutionary new iOS 5 operating system that claims to be the ultimate mobile technology interface. One of the biggest innovations of the new operating system is the introduction of the iCloud computing network. Thi…
Steve Jobs once said that Blu-ray is "a bag of hurt". As Macs users well known, things haven’t settled down (at least not from Apple’s perspective). Several years after that comment, Mac OS X still doesn’t support Blu-ray playback, nor has any Mac s…
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…

873 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