Skipping "%" in file name

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

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

Maciej Tokarski
User
Posts: 23
Joined: Mon Feb 09, 2009 8:52 am

Skipping "%" in file name

Post by Maciej Tokarski »

Hi,
We set the full output path for pdf report via API:

m_pPrinter->Option[L"Save.File"] = fullpath;

Our testers observed that whenever the path contains a single "%" the character is simply removed from path/name. I know "%" has to do with macros, but I was sure it will properly recognize "%[...]" pattern, it seems it always uses "%" as a special character though. I did some further testing and could notice, that if we use double "%%" it's converted to single "%". Could you please confirm it? Is it enough to simply replace every "%" with double "%%" in a path before passing it to the option Save.File for it to work correctly? I couldn't find it in your documentation somehow.

Regards,
Maciej
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3597
Joined: Thu Jul 08, 2004 10:36 pm

Re: Skipping "%" in file name

Post by Ivan - Tracker Software »

The issue is fixed in build 196 which should be available on Thursday or Friday. Thanks for the report.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
Maciej Tokarski
User
Posts: 23
Joined: Mon Feb 09, 2009 8:52 am

Re: Skipping "%" in file name

Post by Maciej Tokarski »

Thank you!
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19919
Joined: Mon Jan 12, 2009 8:07 am

Re: Skipping "%" in file name

Post by Stefan - PDF-XChange »

:)