Jump to content

[Automation] fill vars + export with cli


Recommended Posts

One thing that would be great to have:

I have a Template Document that would often be reused and filled with different data in specific fields.

So if I have placeholders in the document (variables) and could then use the command line + a document with the data to fill in (ini-style, json or xml or whatever can be automatically generated), that then would automatically export the document as new PDF would be great:
 

publisher.exe "D:\Affinity Documents\template1.afpub" /fillvars "D:\Data\NewData.json" /exportpdf "D:\Affinity Output\NewDoc.pdf"

 

System                                                              Notebook Lenovo P50

CPU: AMD Ryzen 3900x                              CPU: Intel i7-6700HQ

RAM: 64 GB                                                   RAM: 32 GB

GPU: RTX 3080 TI                                         GPU: NVIDIA Quadro M2000M 4 GB

SSD: Samsung 980 PRO 1 TB                       SSD: Samsung 850 Pro 500GB

OS: Windows 11 Edu x64                               OS: Windows 10 x64

TFT: 1 x Samsung C49RG94SSU                  TFT: 2 x Lenovo

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
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.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.