# Save Records as PDF

**URL:** https://the.fmsoup.org/t/save-records-as-pdf/4511
**Category:** Questions
**Tags:** pdf, print
**Created:** [November 28, 2024, 5:00pm UTC](https://the.fmsoup.org/t/save-records-as-pdf/4511 "2024-11-28T17:00:12Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![steverichter](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/steverichter/32/1022_2.png) [@steverichter](https://the.fmsoup.org/u/steverichter)
#### Post date: [November 28, 2024, 5:00pm UTC](https://the.fmsoup.org/t/save-records-as-pdf/4511/1 "2024-11-28T17:00:12Z")

</div>

Looking for advice on ensuring “Save Records as PDF” produces an 8.5 x 11 output.

Setting page sizes and printing parameters in FileMaker is very frustrating. For example, the Claris documentation for the “Print Setup” script step states:

“With dialog specifies whether to display the Print Setup dialog box when the script step is performed. If you set With dialog to Off, the output from this script step is sent to the last specified printer and not the printer specified in this script step.”

Not sure I understand the logic in that.

Also, the documentation is unclear whether setting the page size in File \> Print Setup applies to an individual layout or the entire file.

I’m trying to print a particular layout to a pdf with intermittent failures. I need an 8.5 x 11 page, but FMP occasionally produces a 2 x 2 output.

If I send the output to the printer, and then create the pdf, everything works fine, because of the “last specified printer” info above.

However, if I exclude the “Print” step and just use “Save Records as PDF”, I get a 2x 2 output.

I guess the solution is to create two subscripts to set the page size and print, but this seems like kludging a fix for something Claris should have fixed decades ago.

---

<div class="post-metadata">

### Author: ![MonkeybreadSoftware](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/monkeybreadsoftware/32/361_2.png) [@MonkeybreadSoftware](https://the.fmsoup.org/u/MonkeybreadSoftware)
#### Post date: [November 28, 2024, 5:40pm UTC](https://the.fmsoup.org/t/save-records-as-pdf/4511/2 "2024-11-28T17:40:10Z")

</div>

Well, save as PDF doesn't use the print engine, but it takes the paper setting from it.

That is why we have functions in [MBS FileMaker Plugin](https://www.monkeybreadsoftware.com/filemaker/) to automate page setup dialog and setup the paper size by script.

---

<div class="post-metadata">

### Author: ![steverichter](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/steverichter/32/1022_2.png) [@steverichter](https://the.fmsoup.org/u/steverichter)
#### Post date: [December 1, 2024, 1:39am UTC](https://the.fmsoup.org/t/save-records-as-pdf/4511/3 "2024-12-01T01:39:22Z")

</div>

I created a sub-script that runs the Print Setup script step. That seemed to fix my problem, but I don’t understand why.

---

<div class="post-metadata">

### Author: ![daleallyn](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/daleallyn/32/819_2.png) [@daleallyn](https://the.fmsoup.org/u/daleallyn)
#### Post date: [December 2, 2024, 4:58am UTC](https://the.fmsoup.org/t/save-records-as-pdf/4511/4 "2024-12-02T04:58:00Z")

</div>

It sounds like you've found your solution. Just to emphasize, I always use a Print Setup step prior to Save Records as PDF step. This ensures that the PDF page is defined. This can be with dialog [Off] so long as the proper paper size is defined in the script step. It needn't be a subscript – it can just be a step above the PDF step. One would also normally set a $path variable or plan for some other way to define the path to which the PDF saved.

---

<div class="post-metadata">

### Author: ![steverichter](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/steverichter/32/1022_2.png) [@steverichter](https://the.fmsoup.org/u/steverichter)
#### Post date: [December 2, 2024, 12:05pm UTC](https://the.fmsoup.org/t/save-records-as-pdf/4511/5 "2024-12-02T12:05:13Z")

</div>

@daleallyn That’s exactly what I was doing, and resulted in a 2 x 2 inch output.

---

<div class="post-metadata">

### Author: ![daleallyn](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/daleallyn/32/819_2.png) [@daleallyn](https://the.fmsoup.org/u/daleallyn)
#### Post date: [December 2, 2024, 12:28pm UTC](https://the.fmsoup.org/t/save-records-as-pdf/4511/6 "2024-12-02T12:28:17Z")

</div>

That’s interesting, @steverichter. I do a LOT of PDFs in my solutions (lab reports and such) and have never experienced this using the method I mentioned. I’m away from my office, so can’t easily post an example script to compare. I recognize that you’ve solved your issue, but it seems that something is a bit different causing the quirk.

If I have time tomorrow (it’s 7:30 PM here) I’ll post an example for the sake of conversation. 🙂

---

<div class="post-metadata">

### Author: ![steverichter](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/steverichter/32/1022_2.png) [@steverichter](https://the.fmsoup.org/u/steverichter)
#### Post date: [December 2, 2024, 12:34pm UTC](https://the.fmsoup.org/t/save-records-as-pdf/4511/7 "2024-12-02T12:34:15Z")

</div>

@tonywhitelive posted a “best practices” print tutorial that suggested the sub-scripts.

---

<div class="post-metadata">

### Author: ![daleallyn](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/daleallyn/32/819_2.png) [@daleallyn](https://the.fmsoup.org/u/daleallyn)
#### Post date: [December 2, 2024, 12:57pm UTC](https://the.fmsoup.org/t/save-records-as-pdf/4511/8 "2024-12-02T12:57:07Z")

</div>

I saw that. I do use subscripts when they contribute to DRY development practices, but there are times when I prefer to avoid them for other reasons. E.g. sometimes it adds complexity with debugging in a rapid development environment.

Regardless of preference/practice, it seems odd that just changing to a subscript resolves the page/print setup details. If it were mine I’d be curious about what’s happening.

---

<div class="post-metadata">

### Author: ![steverichter](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/steverichter/32/1022_2.png) [@steverichter](https://the.fmsoup.org/u/steverichter)
#### Post date: [December 2, 2024, 1:53pm UTC](https://the.fmsoup.org/t/save-records-as-pdf/4511/9 "2024-12-02T13:53:45Z")

</div>

Agree it’s a curious situation. When I have time, I’ll investigate further. I appreciate your comments.

---

<div class="post-metadata">

### Author: ![tonywhitelive](https://yyz2.discourse-cdn.com/flex030/user_avatar/the.fmsoup.org/tonywhitelive/32/208_2.png) [@tonywhitelive](https://the.fmsoup.org/u/tonywhitelive)
#### Post date: [December 2, 2024, 7:20pm UTC](https://the.fmsoup.org/t/save-records-as-pdf/4511/10 "2024-12-02T19:20:36Z")

</div>

Thanks for the mention. Here is the link

> [@Print Setup and Print Script Steps - best practices](https://the.fmsoup.org/t/print-setup-and-print-script-steps-best-practices/4203):
>
> The goal of the InfoGraphic below is to document the Print Setup and Print Script Steps with the aim of determining the best practices for their use. Some of those best practices might include: [1] Scripts for each Print Setup and Print choice named something like... [1a] Print Setup for \<\<printer\_name\>\>, \<\<paper\_size\>\>, \<\>{, \<\>) ...and... [1b] Print \<\<# pages\>\> to \<\>, \<\<dialog On|Off\>\>, {Records Being Browsed|Current Record} ...to keep code DRY and as readable as possible [2] For each pr…
