Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Script for creating single page pdf


Recommended Posts

Hello! I would like to have a script that exports every record in a layout to a separate pdf file that is individually name (in this case, I want it named a particular field name). I am very new to the scripting thing, so any advice that is dumbed down will help me!


Thank you!

Link to comment
Share on other sites

Go to Record [First]


...Set Variable [$PDFPath; Get(DocumentsPath)&"/"& YourTable::YourField&".pdf"

...If [Get(SystemPlatform) = 2]

...... Set Variable [$PDFPath, "filewin:/"& Middle ($PDFPath, 2, Length ($PDFPath))]

...End If

...Save Records as PDF [current record, no dialog, to $PDFPath]

...Go to Record [Next, Exit After Last]

End Loop




In this example the assumption is that you want them dumped out into your Documents folder. You can do a subfolder, you can put them somewhere other than in Documents such as on your Desktop, etc, but it is easiest if the folder you are sticking them in is either on the Desktop or in Documents, since we have functions for "getting" those. Otherwise you'd have to input a hardwired path or calculate the path from some other info.

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

Terms of Use