PDF-XChange Printer 2012 truncates file names
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
-
- User
- Posts: 20
- Joined: Sat Aug 24, 2013 9:14 pm
PDF-XChange Printer 2012 truncates file names
I use file names like
'Some Text here (15.10.2010) 2013.10.02.docx'
PDF-XChange Printer 2012 truncates all characters between the second last and the last dot of the file name.
As the result I get file names like 'Some Text here (15.10.2010) 2013.10.pdf' (".02" is missing).
Another example:
'Report v1.1.txt'
'Report v1.2.txt'
This would end up with the same PDF file name for both files:
'Report v1.pdf'
'Some Text here (15.10.2010) 2013.10.02.docx'
PDF-XChange Printer 2012 truncates all characters between the second last and the last dot of the file name.
As the result I get file names like 'Some Text here (15.10.2010) 2013.10.pdf' (".02" is missing).
Another example:
'Report v1.1.txt'
'Report v1.2.txt'
This would end up with the same PDF file name for both files:
'Report v1.pdf'
PDF-XChange PRO || Win10 Pro x64 || Intel Core i9-9900k || 64 GB RAM || Nvidia RTX 2080 ti || OKI ES5162 MFP
- Tracker Supp-Stefan
- Site Admin
- Posts: 17948
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: PDF-XChange Printer 2012 truncates file names
Hello Seidenweber,
You've posted in our PDF Tools forums, but the question is for the printing drivers.
Please when specifying the file name make sure the format is "%[DocName].pdf" and the last portion of your original document's name won't be removed.
Regards,
Stefan
You've posted in our PDF Tools forums, but the question is for the printing drivers.
Please when specifying the file name make sure the format is "%[DocName].pdf" and the last portion of your original document's name won't be removed.
Regards,
Stefan
-
- User
- Posts: 20
- Joined: Sat Aug 24, 2013 9:14 pm
Re: PDF-XChange Printer 2012 truncates file names
sorry for thatYou've posted in our PDF Tools forums, but the question is for the printing drivers.
It was %[DocName] (afaik) by default and now I changed it.Please when specifying the file name make sure the format is "%[DocName].pdf" and the last portion of your original document's name won't be removed.
Works like a charm. Thanks a lot.
PDF-XChange PRO || Win10 Pro x64 || Intel Core i9-9900k || 64 GB RAM || Nvidia RTX 2080 ti || OKI ES5162 MFP
- Tracker Supp-Stefan
- Site Admin
- Posts: 17948
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
-
- User
- Posts: 20
- Joined: Sat Aug 24, 2013 9:14 pm
Re: PDF-XChange Printer 2012 truncates file names
...here we go again.Tracker Supp-Stefan wrote:Please when specifying the file name make sure the format is "%[DocName].pdf" and the last portion of your original document's name won't be removed.
I'm using PDF-XChange Printer 2012
Version 5.5 Build 313.1
Using the Macro %[DocName].pdf now leads to double extensions, e.g. filename.pdf.pdf
Do you can give any hints how to solve this issue? Maybe by editing titrules.js or something?
PDF-XChange PRO || Win10 Pro x64 || Intel Core i9-9900k || 64 GB RAM || Nvidia RTX 2080 ti || OKI ES5162 MFP
- Patrick-Tracker Supp
- Site Admin
- Posts: 1645
- Joined: Thu Mar 27, 2014 6:14 pm
- Location: Vancouver Island
- Contact:
Re: PDF-XChange Printer 2012 truncates file names
Hello Seidenweber,
Thanks for the post. You seem to be using a slightly older build. Please update and see if that resolves the issue. You can download the latest build here: https://www.pdf-xchange.com/product/downloads
I hope this helps!
Thanks for the post. You seem to be using a slightly older build. Please update and see if that resolves the issue. You can download the latest build here: https://www.pdf-xchange.com/product/downloads
I hope this helps!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Cheers,
Patrick Charest
Tracker Support North America
Thank you.
Cheers,
Patrick Charest
Tracker Support North America
-
- User
- Posts: 20
- Joined: Sat Aug 24, 2013 9:14 pm
Re: PDF-XChange Printer 2012 truncates file names
Thanks for your help.Patrick-Tracker Supp wrote:You seem to be using a slightly older build. Please update
Has been done. Now I'm a proud user of build 314
nope, sorry...Patrick-Tracker Supp wrote:and see if that resolves the issue.
Using %[DocName] results in Filename.1.2.3.ext -> Filename.1.2.pdf (3. is missing)
Using %[DocName].pdf results in Filename.1.2.3.ext -> Filename.1.2.3.pdf.pdf (double extension)
...for now I did a short AHK-script to rename the files after printing. But it's just a quick and dirty workaround.
PDF-XChange PRO || Win10 Pro x64 || Intel Core i9-9900k || 64 GB RAM || Nvidia RTX 2080 ti || OKI ES5162 MFP
- Tracker Supp-Stefan
- Site Admin
- Posts: 17948
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: PDF-XChange Printer 2012 truncates file names
Hello Seidenweber,
Is the double extension just in the preview the driver shows in the settings screen, or is the actual file with a double .pdf.pdf at the end?
Is the double extension just in the preview the driver shows in the settings screen, or is the actual file with a double .pdf.pdf at the end?
-
- User
- Posts: 20
- Joined: Sat Aug 24, 2013 9:14 pm
Re: PDF-XChange Printer 2012 truncates file names
hello Stefan,
Regardless of which program you use to print something. Word, Firefox, UltraEdit ... even Tackers Viewer or Editor produces this kind of wrong file names.
The actual file has a double extension.Tracker Supp-Stefan wrote:Is the double extension just in the preview the driver shows in the settings screen, or is the actual file with a double .pdf.pdf at the end?
Regardless of which program you use to print something. Word, Firefox, UltraEdit ... even Tackers Viewer or Editor produces this kind of wrong file names.
PDF-XChange PRO || Win10 Pro x64 || Intel Core i9-9900k || 64 GB RAM || Nvidia RTX 2080 ti || OKI ES5162 MFP
- Will - Tracker Supp
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
- Location: London, UK
- Contact:
Re: PDF-XChange Printer 2012 truncates file names
Hi Seidenweber,
Thanks for the post - this was changed so that the .pdf, in the File Name Macro field, was no longer necessary. We had complaints of this behaviour and agreed that to require users to have the .pdf file extension there, was counter-intuitive. Please remove that .pdf and it should work as expected: Hope that helps!
Thanks for the post - this was changed so that the .pdf, in the File Name Macro field, was no longer necessary. We had complaints of this behaviour and agreed that to require users to have the .pdf file extension there, was counter-intuitive. Please remove that .pdf and it should work as expected: Hope that helps!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
-
- User
- Posts: 20
- Joined: Sat Aug 24, 2013 9:14 pm
Re: PDF-XChange Printer 2012 truncates file names
hey Will,
thanks for the screen shot, but...
Without ".pdf" after "%[DocName]" the last portion of the original filename will be removed, if you use dots in filenames.
With ".pdf" after "%[DocName]" you will end up with a double .pdf-extension at the end.
thanks for the screen shot, but...
At this time you have to choose between two issues. Both of them are highly annoying and in both cases the printer driver is not able to generate proper file names:Will - Tracker Supp wrote:Thanks for the post - this was changed so that the .pdf, in the File Name Macro field, was no longer necessary.
Without ".pdf" after "%[DocName]" the last portion of the original filename will be removed, if you use dots in filenames.
With ".pdf" after "%[DocName]" you will end up with a double .pdf-extension at the end.
PDF-XChange PRO || Win10 Pro x64 || Intel Core i9-9900k || 64 GB RAM || Nvidia RTX 2080 ti || OKI ES5162 MFP
-
- User
- Posts: 2394
- Joined: Wed Jan 18, 2006 12:10 pm
Re: PDF-XChange Printer 2012 truncates file names
With the newest release of "PDF-XChange Printer 2012" (v5.5.314.0) it seems to works correctly when you set
%[DocName].pdf as File Name.
By printing "One.Two.Three.Four.Five.Six.docx" I got "One.Two.Three.Four.Five.Six.pdf" as result.
If you only set %[DocName] then the last node of the filename falls away.
In this case, I got "One.Two.Three.Four.Five.pdf" as result.
So, some fine-tuning seems still to be made ...
%[DocName].pdf as File Name.
By printing "One.Two.Three.Four.Five.Six.docx" I got "One.Two.Three.Four.Five.Six.pdf" as result.
If you only set %[DocName] then the last node of the filename falls away.
In this case, I got "One.Two.Three.Four.Five.pdf" as result.
So, some fine-tuning seems still to be made ...
- Patrick-Tracker Supp
- Site Admin
- Posts: 1645
- Joined: Thu Mar 27, 2014 6:14 pm
- Location: Vancouver Island
- Contact:
Re: PDF-XChange Printer 2012 truncates file names
Hi Willy,
Thanks for the tip!! I will discuss this with the dev team post haste!
Cheers!
Thanks for the tip!! I will discuss this with the dev team post haste!
Cheers!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Cheers,
Patrick Charest
Tracker Support North America
Thank you.
Cheers,
Patrick Charest
Tracker Support North America
- Patrick-Tracker Supp
- Site Admin
- Posts: 1645
- Joined: Thu Mar 27, 2014 6:14 pm
- Location: Vancouver Island
- Contact:
Re: PDF-XChange Printer 2012 truncates file names
Hey Guys,
I have heard back from the dev team on this and created an internal development ticket. Please reference RT#3210 when requesting an update to the issue.
Ivan has informed me that this should be fixed soon.
Thank you all for your patience and understanding while we work to resolve this issue.
Cheers!
I have heard back from the dev team on this and created an internal development ticket. Please reference RT#3210 when requesting an update to the issue.
Ivan has informed me that this should be fixed soon.
Thank you all for your patience and understanding while we work to resolve this issue.
Cheers!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Cheers,
Patrick Charest
Tracker Support North America
Thank you.
Cheers,
Patrick Charest
Tracker Support North America
-
- User
- Posts: 20
- Joined: Sat Aug 24, 2013 9:14 pm
Re: PDF-XChange Printer 2012 truncates file names
Driver 5.5.315 is installed. Same problem :/
PDF-XChange PRO || Win10 Pro x64 || Intel Core i9-9900k || 64 GB RAM || Nvidia RTX 2080 ti || OKI ES5162 MFP
- Tracker Supp-Stefan
- Site Admin
- Posts: 17948
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: PDF-XChange Printer 2012 truncates file names
Hello Seidenweber,
The ticket was set to resolved, but I've just reopened it. Can you please confirm which problem exactly is still prenset?
The double .pdf.pdf at the end or the druncation of the .Six from the resultinf PDF file name when you use only %[DocName] and not %[DocName].pdf ?
Regards,
Stefan
The ticket was set to resolved, but I've just reopened it. Can you please confirm which problem exactly is still prenset?
The double .pdf.pdf at the end or the druncation of the .Six from the resultinf PDF file name when you use only %[DocName] and not %[DocName].pdf ?
Regards,
Stefan
-
- User
- Posts: 2394
- Joined: Wed Jan 18, 2006 12:10 pm
Re: PDF-XChange Printer 2012 truncates file names
Still the same behaviour as it was in v5.5 build 314:
- when setting the File name to "%[DocName].pdf" in Save Settings of PDF-XChange Printer 2012 (v5.5 build 315),
the resulting PDF has exactly the same name as the original - except the extension of course.
one.two.three.four.five.six.docx >> one.two.three.four.five.six.pdf
*** So, this is (still) a correct behaviour.
- when setting the File name to "%[DocName]" in Save Settings of PDF-XChange Printer 2012 (v5.5 build 315),
the resulting PDF looses the last node in it's name.
one.two.three.four.five.six.docx >> one.two.three.four.five.pdf
*** So, this is (still) an incorrect behaviour.
I hope this is clear to Tracker Support ?
Best regards.
- when setting the File name to "%[DocName].pdf" in Save Settings of PDF-XChange Printer 2012 (v5.5 build 315),
the resulting PDF has exactly the same name as the original - except the extension of course.
one.two.three.four.five.six.docx >> one.two.three.four.five.six.pdf
*** So, this is (still) a correct behaviour.
- when setting the File name to "%[DocName]" in Save Settings of PDF-XChange Printer 2012 (v5.5 build 315),
the resulting PDF looses the last node in it's name.
one.two.three.four.five.six.docx >> one.two.three.four.five.pdf
*** So, this is (still) an incorrect behaviour.
I hope this is clear to Tracker Support ?
Best regards.
- Ivan - Tracker Software
- Site Admin
- Posts: 3550
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
- Contact:
Re: PDF-XChange Printer 2012 truncates file names
The problem is in titrules.js that defines different logic extracting file name from print job name generated by different apps.
And the problem is that this file removes extension by itself. That has been done long time ago for some historical reason, and we are not so sure how to proper change it now as many users have customized titrules.js file.
In case of Words documents, the function like_WINWORD works to extract file name:
and the problem is that it calls cutOffExtension(s). You can edit this file and replease this line with just return s; so this function will looks like:
and that should solve the problem.
And the problem is that this file removes extension by itself. That has been done long time ago for some historical reason, and we are not so sure how to proper change it now as many users have customized titrules.js file.
In case of Words documents, the function like_WINWORD works to extract file name:
Code: Select all
function like_WINWORD(s)
{
var ix = s.indexOf(" - ");
ix = ix < 0 ? 0 : ix + 3;
s = s.substr(ix);
return cutOffExtension(s);
}
Code: Select all
function like_WINWORD(s)
{
var ix = s.indexOf(" - ");
ix = ix < 0 ? 0 : ix + 3;
s = s.substr(ix);
return s;
}
Tracker Software (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.
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.
-
- User
- Posts: 2394
- Joined: Wed Jan 18, 2006 12:10 pm
Re: PDF-XChange Printer 2012 truncates file names
Sorry to say Ivan, but I wonder why you do not get the same results as I do ?
Did you test this out with an identical file name as mine, or did you put less nodes in the name ?
Like you proposed to do, I did change the titrules.js (it is the first time I hear about this file).
Now, I get the following results:
- One.Two.Three.Four.Five.Six.docx.pdf.pdf
- One.Two.Three.Four.Five.Six.docx.pdf
They are not correct either.
N.B.: I am just doing these tests to help you at Tracker Support to remove possible 'bugs'.
Even though it is not important to me that this gets resolved, but maybe it is for other users.
Best regards.
Did you test this out with an identical file name as mine, or did you put less nodes in the name ?
Like you proposed to do, I did change the titrules.js (it is the first time I hear about this file).
Now, I get the following results:
- One.Two.Three.Four.Five.Six.docx.pdf.pdf
- One.Two.Three.Four.Five.Six.docx.pdf
They are not correct either.
N.B.: I am just doing these tests to help you at Tracker Support to remove possible 'bugs'.
Even though it is not important to me that this gets resolved, but maybe it is for other users.
Best regards.
-
- User
- Posts: 20
- Joined: Sat Aug 24, 2013 9:14 pm
Re: PDF-XChange Printer 2012 truncates file names
hey Stefan,Tracker Supp-Stefan wrote: The ticket was set to resolved, but I've just reopened it. Can you please confirm which problem exactly is still prenset?
The double .pdf.pdf at the end or the druncation of the .Six from the resultinf PDF file name when you use only %[DocName] and not %[DocName].pdf ?
The double .pdf.pdf at the end is still present and happens always if %[DocName].pdf is used.
If just %[DocName] is used, the truncation only happens under certain conditions...
'Revision 1.2 2015.10.05.txt' >> 'Revision 1.2 2015.10.05.pdf' ... works as intended
BUT
e.g. with the filename 'one.two.three.four.five.six.txt' >> 'one.two.three.four.five.pdf' the '.six' is still truncated
PDF-XChange PRO || Win10 Pro x64 || Intel Core i9-9900k || 64 GB RAM || Nvidia RTX 2080 ti || OKI ES5162 MFP
- Tracker Supp-Stefan
- Site Admin
- Posts: 17948
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: PDF-XChange Printer 2012 truncates file names
Thanks for confirming this Seidenweber,
We have reopened the ticket and our devs will check this once again.
Regards,
Stefan
We have reopened the ticket and our devs will check this once again.
Regards,
Stefan
-
- User
- Posts: 20
- Joined: Sat Aug 24, 2013 9:14 pm
Re: PDF-XChange Printer 2012 truncates file names
I've figured out, that the truncation only seems to happen, if the last part of the file name has a length of 3 charsTracker Supp-Stefan wrote:We have reopened the ticket and our devs will check this once again.
Some.Testing.1.txt >> Some.Testing.1.pdf ... OK
Some.Testing.12.txt >> Some.Testing.12.pdf ... OK
Some.Testing.123.txt >> Some.Testing.pdf '.123' is missing
Some.Testing.1234.txt >> Some.Testing.1234.pdf ... OK
Some.Testing.12345.txt >> Some.Testing.12345.pdf ... OK
Some.Testing.123456.txt >> Some.Testing.123456.pdf ... OK
Obi-Wan.Kenobi >> Obi-Wan.pdf ... OK
Obi.Wan.Kenobi >> Obi.pdf '.Wan' is missing
Last edited by Seidenweber on Thu Sep 24, 2015 10:37 pm, edited 1 time in total.
PDF-XChange PRO || Win10 Pro x64 || Intel Core i9-9900k || 64 GB RAM || Nvidia RTX 2080 ti || OKI ES5162 MFP
- Will - Tracker Supp
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
- Location: London, UK
- Contact:
Re: PDF-XChange Printer 2012 truncates file names
Hi Seidenweber,
Thanks for the info. - that's interesting and I expect the Dev. Team will want to know that. I've added this to the ticket too.
Cheers,
Thanks for the info. - that's interesting and I expect the Dev. Team will want to know that. I've added this to the ticket too.
Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
- Ivan - Tracker Software
- Site Admin
- Posts: 3550
- Joined: Thu Jul 08, 2004 10:36 pm
- Location: Vancouver Island - Canada
- Contact:
Re: PDF-XChange Printer 2012 truncates file names
Will fix it in the next build. Will remove workaround for tree characters extensions and will modify titrules.js file.
That should solve all issues.
That should solve all issues.
Tracker Software (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.
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.