Previous Thread
Next Thread
Print Thread
PDFX in APEX #31757 04 Oct 19 10:06 AM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content OP
Member
OP Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
Hi,

If we print to PDFX from APEX, the file is generated with the four stamps on each corner.
Those stamps are supposed to display when using PDFX outside A-Shell but, printing from APEX shouldn't be considered "inside A-Shell" ?
This came up when a user print the XTREE content using CTRL+P in a server, where the windows "print to PDF" does not exist by default, and tried to get a PDF using PDFX.

Thanks


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: PDFX in APEX [Re: Jorge Tavares - UmZero] #31760 04 Oct 19 01:55 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Hmmmm...., it does look like there's a gap in the logic there. I think how it should work is that PDFX would recognized A-Shell's license regardless of whether printing directly from A-Shell to PDFX, or indirectly via XTREE -> APEX -> PDFX. The problem, I think, is that the preview mechanism you see when using the XTREE print feature, isn't really APEX. It's based on the same underlying control, but in this case, the XTREE control and the preview control have gone off into a corner for a private conversation, and A-Shell isn't quite able to supervise it. I'm not sure there's even a possibility of hooking the operation.

There is a kind of workaround for the problem, but it's not exactly user-friendly. PDFX5 (as opposed to PDFX3), when instantiated (by printing) creates a new virtual driver associated with your job, shown below as PDFX/A-Shell TSKAAA. That driver knows about the A-Shell license and could be therefore used from the XTREE preview. The original/base driver (PDF-XChange Printer 2012) is missing the license.

Attached Files xtreepdfx.png
Re: PDFX in APEX [Re: Jorge Tavares - UmZero] #31762 08 Oct 19 12:01 PM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content OP
Member
OP Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
Apologize for the silence on this, just to say that, it works, case solved!
And, no problem about using PDFX/A-Shell, besides not perfect only because of the variable part with the jobname TSK???, I consider it more elegant than using an old printer from 2012 grin

Thank you


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: PDFX in APEX [Re: Jorge Tavares - UmZero] #31763 08 Oct 19 02:48 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
The main complication with the PDFX/A-Shell driver is that it may not yet exist until there is a "normal" PDFX print request.

Re: PDFX in APEX [Re: Jorge Tavares - UmZero] #35577 08 Sep 22 01:19 PM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content OP
Member
OP Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
Hi Jack,
This problem seems to have reappeared with the new PDFX driver.
From inside an XTREE, choose Print from the contexr menu, the preview opens and, printing to PDF-X Standard or PDFX/A-Shell generates the PDF with the BUY stamps on each corner.
Is this fixable?


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: PDFX in APEX [Re: Jorge Tavares - UmZero] #35580 08 Sep 22 05:42 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
In theory it should be fixable. The tricky thing is that the license is passed at runtime to the driver by the app that is printing. (There's no way to just store it, because the license is specific to the A-Shell -- PDFX pair, rather than to PDFX itself. To get a universal PDFX license you have to individually buy the retail versions.) And it isn't easy for A-Shell to get in between the XTREE preview window and the PDFX call, since those two controls have a "special relationship".

I'm studying it...

Re: PDFX in APEX [Re: Jorge Tavares - UmZero] #35582 08 Sep 22 06:44 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Ok,I think this is fixed in 6.5.1720.5 ...

ash-6.5.1720.5-w32c-upd.zip
ash65notes.txt

Re: PDFX in APEX [Re: Jorge Tavares - UmZero] #35583 08 Sep 22 07:04 PM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content OP
Member
OP Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
Excellent, it does solve the problem using the PDFX/A-Shell.
If sent to the PDF-X Standard it keeps the four stamps, but that's the expected and prior behavior, correct?

The other good news is that, I can execute this ashw32.exe w/o automatic exit, has reported previously so, now I also can install the fix for the email/attachment problem.

Many Thanks


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal
Re: PDFX in APEX [Re: Jorge Tavares - UmZero] #35584 08 Sep 22 07:59 PM
Joined: Jun 2001
Posts: 11,794
J
Jack McGregor Offline
Member
Offline
Member
J
Joined: Jun 2001
Posts: 11,794
Yes, that was the expected and prior behavior ( a consequence of the fact that the only way to pass the license to the driver is to create a new instance of it, which you don't normally see because A-Shell handles it silently, but in this case, A-Shell isn't able to get in the middle between the XTREE preview control and its own printing logic.)

As for the other problem, interestingly I just reproduced it myself about an hour ago, only in certain programs calling XTREE. (Your app may start out that way which is why you got it immediately.) After a full recompilation the problem seemed to go away, so it may have been that the compiler optimization (to avoid recompiling modules unnecessarily) had gotten out of sync.

Re: PDFX in APEX [Re: Jorge Tavares - UmZero] #35586 08 Sep 22 08:19 PM
Joined: Jun 2001
Posts: 3,406
J
Jorge Tavares - UmZero Online Content OP
Member
OP Online Content
Member
J
Joined: Jun 2001
Posts: 3,406
Indeed, my startup program calls an XTREE to display the menu so, it's consistent with your diagnostic.
It's great when an issue don't go away w/o an explanation.
Thanks


Jorge Tavares

UmZero - SoftwareHouse
Brasil/Portugal

Moderated by  Jack McGregor, Ty Griffin 

Powered by UBB.threads™ PHP Forum Software 7.7.3