Jump to content
Server Maintenance This Week. ×

Replace existing pdf instead of appending


Corey-Troy

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

Recommended Posts

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?

Link to comment
Share on other sites

This topic is 5207 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.