Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Replace existing pdf instead of appending


This topic is 5474 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a script that creates a numerous(calculated) page pdf.

However, if i create the pdf, then create it again, the 2nd pdf pages are added to the previous pdf.

I script the pdf to be saved in the Windows/temp folder as a calculated value name(eg. swp123.pdf).

I do not have the 'Append to existing pdf' ticked for the 1st page being created as a pdf, but the other pages i have it ticked, as they are pages added to the existing pages.

So i do not know why it is appended to a previously created pdf, if one existed.

Is there a way to have a step added to the script, to check to see if a pdf with the calculated name already exists before creating a 2nd pdf.

If so, to delete the 1st pdf, and then create the new pdf?

Posted

I think the trick is to export an empty container to the file you want to remove.

This topic is 5474 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.