When setting headers or footers in PDF-XChange Printer Standard, the %[DocPath] macro may not expand

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers only - Please do not post requests for older versions of PDF-XChange or the PDF-Tools/OFFice2PDF applications here

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

User avatar
rakunavi
User
Posts: 1925
Joined: Sat Sep 11, 2021 5:04 am

When setting headers or footers in PDF-XChange Printer Standard, the %[DocPath] macro may not expand

Post by rakunavi »

Hello all,

When setting headers or footers in PDF-XChange Printer Standard, I noticed that the %[DocPath] macro does not expand.

In the verification video below, I open the PDF-XChange Printer Standard print dialog from PDF-XChange Editor. I selected the template “Page 1; C:\My Documents\Document” as the header and clicked the Customize... button to open the dialog. However, initially, nothing appears in the dialog. As previously reported in this topic, closing and reopening the “Print Preferences” dialog causes the dialog to finally display the headers settings as shown below.

  • figure1.png
Now, when printing in this state, the file outputs a PDF file like the one below.

  • figure2.png
  • sample.pdf
As you can see, it appears the %[DocPath] macro present in the macro settings is not being expanded in the header. Note that the original file is saved in the “C:\Users\user\Downloads” folder, so the header on the right should display “C:\Users\user\Downloads\blank.pdf”.

  • Video.webm
Hoping that the above information will be of some help to you.
Thank you so much for your continued support.

Best regards,
rakunavi

- PDF-XChange Editor PRO Version: 10.7.3 build 401
- OS Version: Windows 11 Pro / Home 24H2 Build 26100.6584
- PC Model: GMKtec Nucbox M7 Pro with HUION Kamvas Pro 19 / Lenovo IdeaPad C340-15IWL
You do not have the required permissions to view the files attached to this post.
Last edited by rakunavi on Thu Oct 09, 2025 9:34 pm, edited 1 time in total.
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Sean - PDF-XChange
Site Admin
Posts: 275
Joined: Wed Sep 14, 2016 5:42 pm

Re: When setting headers or footers in PDF-XChange Printer Standard, the %[DocPath] macro may not expand

Post by Sean - PDF-XChange »

Thanks Rakunavi - I've passed this onto the development team for thier consideration.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623