Easiest way to create PDF's by "printing" silently ?
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
Easiest way to create PDF's by "printing" silently ?
Hi
I am maintaining a special application (written in APL language) to one customer.
Now I need to replace old PDF generating system with a new. The need is to be able to generate multipage PDF files with given path and filename from own created graphics (instead of printing them on paper).
I am a little confused about options that you have, I have very limited knowledge on using ActiveObjects from within application code.
I have installed some tools you provide, so when lookin the installed ActiveComponents I get following:
PXCComLib5.CPXCControlEx ActiveObject CPXCControlEx Class
PXCComLib5.CPXCControlEx.1 ActiveObject CPXCControlEx Class
PXCComLib5.CPXCPrinter ActiveObject CPXCPrinter Class
PXCComLib5.CPXCPrinter.1 ActiveObject CPXCPrinter Class
PXCIEaddin5.PXCIEaddinBHO ActiveObject PXCIEaddin5
PXCIEaddin5.PXCIEaddinBHO.1 ActiveObject PXCIEaddin5
PXCOfficeAddin5.Addin ActiveObject PDF-XChange 2012 Office COM Plugin
PXCOfficeAddin5.Addin.1 ActiveObject PDF-XChange 2012 Office COM Plugin
Based on some earlier discussion on this board I tried to create a new instance (with name 'pcx') similarly as I create an Excel instance:
'pxc' []wi 'New' 'PXCComLib5.CPXCPrinter'
but I only get error message "Unable to create ActiveX object; hresult=80080005"
any ideas how to solve this because it prevents me to do any more testing?
Regards,
Timotei
I am maintaining a special application (written in APL language) to one customer.
Now I need to replace old PDF generating system with a new. The need is to be able to generate multipage PDF files with given path and filename from own created graphics (instead of printing them on paper).
I am a little confused about options that you have, I have very limited knowledge on using ActiveObjects from within application code.
I have installed some tools you provide, so when lookin the installed ActiveComponents I get following:
PXCComLib5.CPXCControlEx ActiveObject CPXCControlEx Class
PXCComLib5.CPXCControlEx.1 ActiveObject CPXCControlEx Class
PXCComLib5.CPXCPrinter ActiveObject CPXCPrinter Class
PXCComLib5.CPXCPrinter.1 ActiveObject CPXCPrinter Class
PXCIEaddin5.PXCIEaddinBHO ActiveObject PXCIEaddin5
PXCIEaddin5.PXCIEaddinBHO.1 ActiveObject PXCIEaddin5
PXCOfficeAddin5.Addin ActiveObject PDF-XChange 2012 Office COM Plugin
PXCOfficeAddin5.Addin.1 ActiveObject PDF-XChange 2012 Office COM Plugin
Based on some earlier discussion on this board I tried to create a new instance (with name 'pcx') similarly as I create an Excel instance:
'pxc' []wi 'New' 'PXCComLib5.CPXCPrinter'
but I only get error message "Unable to create ActiveX object; hresult=80080005"
any ideas how to solve this because it prevents me to do any more testing?
Regards,
Timotei
- Tracker Supp-Stefan
- Site Admin
- Posts: 17910
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Easiest way to create PDF's by "printing" silently ?
Hello Timotei,
And welcome to our forums. I've passed your problem to our drivers experts and we will post back here as soon as we have any further news.
Best,
Stefan
And welcome to our forums. I've passed your problem to our drivers experts and we will post back here as soon as we have any further news.
Best,
Stefan
- Tracker Supp-Stefan
- Site Admin
- Posts: 17910
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Easiest way to create PDF's by "printing" silently ?
Hello Timotei,
Are you actually trying to use our end user products AX components via code?
You can't do this and will instead need to take a look at our drivers API SDK:
https://www.pdf-xchange.com/product ... rivers-api
And you can then check the VB project samples included with it.
Best,
Stefan
Are you actually trying to use our end user products AX components via code?
You can't do this and will instead need to take a look at our drivers API SDK:
https://www.pdf-xchange.com/product ... rivers-api
And you can then check the VB project samples included with it.
Best,
Stefan
Re: Easiest way to create PDF's by "printing" silently ?
As told, I am a bit confused about your product range and what would be most suitable for my use.Tracker Supp-Stefan wrote:Hello Timotei,
Are you actually trying to use our end user products AX components via code?
You can't do this and will instead need to take a look at our drivers API SDK:
https://www.pdf-xchange.com/product ... rivers-api
And you can then check the VB project samples included with it.
Best,
Stefan
I don't work with VB but I'll check the examples, maybe I can get hints in there also.
I will come back with results of searching that path
- Tracker Supp-Stefan
- Site Admin
- Posts: 17910
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Easiest way to create PDF's by "printing" silently ?
Hi Timotei,
There are examples in other languages as well as you will notice
And looking forward to the results of your testing!
Cheers,
Stefan
There are examples in other languages as well as you will notice
And looking forward to the results of your testing!
Cheers,
Stefan
Re: Easiest way to create PDF's by "printing" silently ?
An additional question:
I found an old FAQ subject "File naming and how to create your own file naming rules"
Is this still valid information? And where to find the file TITRULES.RSL ?
I found an old FAQ subject "File naming and how to create your own file naming rules"
Is this still valid information? And where to find the file TITRULES.RSL ?
- Tracker Supp-Stefan
- Site Admin
- Posts: 17910
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Easiest way to create PDF's by "printing" silently ?
Hello timotei,
Could you please include the link to the said FAQ (or was it a forum post? )
And there's a titrules.js file that's distributed with the driver but I am not sure about the titrules.rsl one you are menitoning.
Best,
Stefan
Could you please include the link to the said FAQ (or was it a forum post? )
And there's a titrules.js file that's distributed with the driver but I am not sure about the titrules.rsl one you are menitoning.
Best,
Stefan
- Attachments
-
- titrules.zip
- (1.17 KiB) Downloaded 217 times
Re: Easiest way to create PDF's by "printing" silently ?
Title is: "File naming and how to create your own file naming rules"Tracker Supp-Stefan wrote:Hello timotei,
Could you please include the link to the said FAQ (or was it a forum post? )
And there's a titrules.js file that's distributed with the driver but I am not sure about the titrules.rsl one you are menitoning.
Best,
Stefan
Link is:
https://forum.pdf-xchange.com/ ... f=29&t=924
- Tracker Supp-Stefan
- Site Admin
- Posts: 17910
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Easiest way to create PDF's by "printing" silently ?
Hi timotei,
That's quite an old topic indeed, the current file is titrules.js, but as you are using the Drivers API you can control the file names directly - so is that needed in your case at all?
It's for use with our end user drivers when access to a programming environment is not available/feasible.
Best,
Stefan
That's quite an old topic indeed, the current file is titrules.js, but as you are using the Drivers API you can control the file names directly - so is that needed in your case at all?
It's for use with our end user drivers when access to a programming environment is not available/feasible.
Best,
Stefan
Re: Easiest way to create PDF's by "printing" silently ?
Hi,Tracker Supp-Stefan wrote:Hi timotei,
That's quite an old topic indeed, the current file is titrules.js, but as you are using the Drivers API you can control the file names directly - so is that needed in your case at all?
It's for use with our end user drivers when access to a programming environment is not available/feasible.
Best,
Stefan
Ok, is that file titrules.js usable also when using other programs excel or AutoCAD or some inhouse application (not made with Java nor Javascript) ?
My need is very simple so if I could manage without using Drivers API it would make things easier.
All I need at moment is to be able to give name and path to the PDF file which will be created (easiest way to create a file is to change PDF X-Change printer driver as default printer tempirarily by a program).
Only if multisheet printouts cannot be handled by such systematic I need something more complicated.
- Tracker Supp-Stefan
- Site Admin
- Posts: 17910
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London
- Contact:
Re: Easiest way to create PDF's by "printing" silently ?
Hello timotei,
I spoke with one of my colleagues from the dev team and he told me that "titrules.js" is loaded once when the saver starts and then is used when creating the destination names. You will also be unable no control the time when a document is converted (this is done asynchronously), so you will not be able to correctly change titrules.js between printings and control file naming in such way. There's another possibility - an environment variable that you could pass and try to control the document names in such a way - but then again - document conversion is asynchronous so you will not know when it's safe to change the env variable for the next file.
The only proper and correct way is to use our Drivers API and have full control over the printing process.
Best,
Stefan
I spoke with one of my colleagues from the dev team and he told me that "titrules.js" is loaded once when the saver starts and then is used when creating the destination names. You will also be unable no control the time when a document is converted (this is done asynchronously), so you will not be able to correctly change titrules.js between printings and control file naming in such way. There's another possibility - an environment variable that you could pass and try to control the document names in such a way - but then again - document conversion is asynchronous so you will not know when it's safe to change the env variable for the next file.
The only proper and correct way is to use our Drivers API and have full control over the printing process.
Best,
Stefan