Search found 81 matches

by steve.thresher
Thu Jul 16, 2020 9:44 am
Forum: PDF-Tools SDK (all our PDF DLL Libraries)
Topic: Which Upgrade Product Do I Need?
Replies: 1
Views: 3215

Which Upgrade Product Do I Need?

We currently use LoadLibrary to use the following list of functions from XCPRO40.DLL PXCp_Init PXCp_ReadDocumentW PXCp_WriteDocumentW PXCp_GetPagesCount PXCp_Delete PXCp_InsertPagesTo PXCp_PageGetBox PXCp_PageSetBox PXCp_AddWatermark PXCp_EnableSecurity PXCp_EnableSecurityEx PXCp_PageSetRotate Does ...
by steve.thresher
Wed Oct 17, 2018 10:27 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Are there some test licence details I can use as I only have a licence for V6?
by steve.thresher
Thu Oct 11, 2018 7:57 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Have you managed to make any progress on this issue?
by steve.thresher
Tue Oct 02, 2018 8:31 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Hi,

The dump file has now been uploaded as: pdfSaver6 - PDF-XChange Drivers API SDK - Virtual Printers Left Behind.zip
by steve.thresher
Wed Sep 26, 2018 11:02 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Yes, OnError was traced as well: IMPLEMENT_DYNAMIC(CPrinterEvents, CCmdTarget) CPrinterEvents::CPrinterEvents() { m_dwConnectionCookie = 0; m_hEnvent = INVALID_HANDLE_VALUE; m_pPrinter = nullptr; // EnableAutomation(); } CPrinterEvents::~CPrinterEvents() { Detach(); } void CPrinterEvents::Attach(HAN...
by steve.thresher
Mon Sep 24, 2018 10:55 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

I've had a go at implementing the suggested alternative to WaitForPrintEvent but I'm still seeing instances where the document saved event is not received causing the manual loop to run until timeout (2 mins) before continuing. I have a DbgView log file which I've attached. I also have a dump of the...
by steve.thresher
Tue Sep 18, 2018 10:24 pm
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Thankyou for the quick turnaround. I'll give it a go.
by steve.thresher
Tue Sep 18, 2018 10:49 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

I've managed to put together a simple project that shows the hang. PrintPDF.zip contains a solution that builds PrintPDF,exe and SampleService.exe. All outputs are hard coded to E:\TEMP. PrintPDF.exe creates a PDF named with PrintPDF-date-time-tickcount.PDF with a single page showing the filename. S...
by steve.thresher
Wed Sep 12, 2018 8:21 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Hi Ivan,

I've emailed the requested information.
by steve.thresher
Mon Sep 10, 2018 11:47 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Is there some kind of logging I could switch on that would help to identify why pdfsaver6 sometimes fails to produce a document? I really need to get to the bottom of this problem so some kind of response would be appreciated.
by steve.thresher
Wed Sep 05, 2018 2:50 pm
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

I've had to remove the WaitForPrintEvent call as it appears to be causing more problems than it solves. The issues are occurring on a server with remote desktop services where multiple users are creating a virtual printer simultaneously. pdfSaver6 is launched but no PDF file is created. Is it possib...
by steve.thresher
Mon Sep 03, 2018 10:07 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Is this how the call should be handled? try { // This will throw an E_ABORT exception if the event is not received in time HRESULT hr = m_pPrinter6->WaitForPrintEvent(PXC6::PrintEvent::event_DocumentSaved,20000); if (FAILED(hr)) LOGWRITE('Y',CXD_STR().catf("Error %dword%,4 while waiting for the...
by steve.thresher
Fri Aug 24, 2018 8:19 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Could you please expand on the last comment about handling com errors in non-raw imports?
by steve.thresher
Thu Aug 23, 2018 3:47 pm
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

I've added the suggested call and it appeared to be working on my development rig but, now the software is being distributed to our customers, we are seeing the function fail intermittently. The function appears to be returning the HRESULT E_ABORT with the stack is as follows: KERNELBASE.dll!_RaiseE...
by steve.thresher
Thu Aug 23, 2018 8:07 am
Forum: PDF-XChange Drivers API SDK
Topic: Temporary File Names
Replies: 6
Views: 6495

Re: Temporary File Names

The majority of prints are produced at the same speed (10-15 second) but every so often one will take over 40 seconds. The documents that print slowly aren't any larger and it doesn't happen at a set time of day. The customer is just trying to eliminate anything that could slow down the print proces...
by steve.thresher
Wed Aug 22, 2018 7:17 am
Forum: PDF-XChange Drivers API SDK
Topic: Temporary File Names
Replies: 6
Views: 6495

Re: Temporary File Names

Thanks for that. I really don't believe the performance issues are related to the temporary file creation but our customer does and, as they say, "the customer is always right!". :roll:
by steve.thresher
Tue Aug 21, 2018 11:24 am
Forum: PDF-XChange Drivers API SDK
Topic: Temporary File Names
Replies: 6
Views: 6495

Temporary File Names

Hi, Is there a pattern to the temporary filenames created in the windows temp folder while a PDF is being generated. A customer of ours is having performance issues and would like to exclude them from the anti-virus product they are using. The filenames I've seen by using Process Monitor from Sysint...
by steve.thresher
Thu Aug 16, 2018 9:08 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Could someone please comment on whether this is still a known problem or if a fix has been put in place with newer versions of the product?
by steve.thresher
Mon Aug 13, 2018 6:05 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Could someone please give me an update on this issue?
by steve.thresher
Wed Aug 08, 2018 1:48 pm
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

I've just searched the forums for RemoveOrphanedPrinters and found the following post that was created by my predecessor: https://forum.pdf-xchange.com/viewtopic.php?f=43&t=26825&p=104023&hilit=RemoveOrphanedPrinters#p104023 It would appear the last fix to RemoveOrphanedPrinters was year...
by steve.thresher
Wed Aug 08, 2018 1:46 pm
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Hi Ivan, Thanks for the response. I've been back to the source to add the suggested call to find the following commented out code: // this is in the sample code but if you do this while other sessions are printing, you can remove their printers! // if (m_pFactory6 != NULL) // m_pFactory6->RemoveOrph...
by steve.thresher
Tue Aug 07, 2018 9:15 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Any thoughts on this one?
by steve.thresher
Mon Aug 06, 2018 10:11 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Re: Virtual Printers Left Behind

Here's a stripped down version of the code we're using: void print_pdf() { //Sleep(20000); PXC6::IPXCControlExPtr pFactory6; try { CLSID clsid; if (SUCCEEDED(CLSIDFromProgID(L"PXCComLib6.CPXCControlEx",&clsid))) pFactory6 = PXC6::IPXCControlExPtr(__uuidof(PXC6::CPXCControlEx)); } catch...
by steve.thresher
Wed Aug 01, 2018 8:35 am
Forum: PDF-XChange Drivers API SDK
Topic: Virtual Printers Left Behind
Replies: 35
Views: 26020

Virtual Printers Left Behind

Can you offer any suggestions as to why virtual printers are persisting after a print job has been completed and even after a server has been rebooted?
Multiple PDF-XChange V6 printers.jpg
by steve.thresher
Thu Mar 22, 2018 4:14 pm
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Hi Ivan,

Thankyou very much for the workaround. I've modified the production code and I'm now getting documents produced when the program is launched by a service.

Kind Regards,
Steve.
by steve.thresher
Mon Mar 19, 2018 11:53 am
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Could someone please give me an update on how this issue is progressing?
by steve.thresher
Tue Mar 13, 2018 9:06 am
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Hi,

It's been a few weeks, has any progress been made yet?

Thanks,
Steve,
by steve.thresher
Tue Mar 06, 2018 12:51 pm
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Radi has now provided me with a new licence key. Any thoughts on when the problem can be progressed.
by steve.thresher
Mon Mar 05, 2018 8:42 pm
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Could you please tell me who to email regarding a replacement licence key?
by steve.thresher
Mon Mar 05, 2018 1:55 pm
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

I believe the two downloads were both myself. The first from checking what I had uploaded could be downloaded and the second from me checking the count increased when I downloaded the project as I was trying to work out if anyone had bothered to look at it yet. The sample has now been modified to re...
by steve.thresher
Tue Feb 27, 2018 2:57 pm
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Any idea how much longer it will be until this issue can be progressed?
by steve.thresher
Thu Feb 22, 2018 12:38 pm
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Hi Alex,

Could you please confirm if this is something you can work with?

Thanks,
Steve Thresher.
by steve.thresher
Tue Feb 20, 2018 1:57 am
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Hi Alex, It's not practical to give you the actual code due to the large number of dependencies and configuration that would be required but I have put together a sample that I believe is a fair simulation of what we're doing. The sample contains a service that just sits in a loop and attempts to sp...
by steve.thresher
Tue Feb 06, 2018 3:25 pm
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

I have a process that produces PDF files which works when run standalone. The problem is when the process is launched from a service, pdfsaver is started but no PDF is produced (see callstack in an earlier event). The sample you provided was your proof that PDFs can be created from a service but it ...
by steve.thresher
Tue Feb 06, 2018 10:07 am
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

I still cannot get the sample to work. I've tried tweaking the case of the verb name but that hasn't made any difference. I've attached an image that I believe shows all relevant details at the time the print job is started. I've also tried to manually initiate what the code is running by dragging t...
by steve.thresher
Mon Feb 05, 2018 5:50 pm
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Thanks for the update, I can now build the solution. The problem now is both the forms app and service fail when starting the print job. The forms app gives: An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll Additional information: The specified executable ...
by steve.thresher
Mon Feb 05, 2018 9:18 am
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

I've not been able to get the sample to build yet given I'm using version 6 of the product not version 5. Would you be able to provide an upgraded version of the sample that will work with version 6? Also, while looking for information on how to build the sample, I found this entry on StackOverflow:...
by steve.thresher
Mon Jan 22, 2018 4:00 pm
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Could you please tell me how I register the assembly / DLL so I have access to the PXCComLib5.CPXCControlEx class / object from within the attached C# solution?
by steve.thresher
Thu Nov 30, 2017 10:17 am
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Any idea how much longer it will be until this issue can be progressed?
by steve.thresher
Tue Nov 21, 2017 4:18 am
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Could you please let me know if this issue will be investigated further?
by steve.thresher
Mon Nov 13, 2017 10:05 am
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Could you please let me know if this issue will be investigated further?
by steve.thresher
Tue Nov 07, 2017 11:34 am
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Could you please give me an update on what is happening with this issue?
by steve.thresher
Thu Nov 02, 2017 9:17 am
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Sorry to nag but I have several customers that are affected by this issue and they're starting to get quite impatient. Is there anything further I can try to get this solution working?
by steve.thresher
Thu Oct 26, 2017 2:48 pm
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Hi Stefan, Unfortunately the 'Allow desktop interaction' option has not fixed the problem. Basically my program is waiting for the PDF to be produced but the file never appears. The callstack for pdfSaver6.exe is as follows: > win32u.dll!NtUserGetMessage() Unknown user32.dll!GetMessageW() Unknown pd...
by steve.thresher
Thu Oct 26, 2017 8:58 am
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

Thanks for the response. I've tried using my credentials for the service and that made no difference. I'll try the interact with desktop option and report back.
by steve.thresher
Tue Oct 24, 2017 8:07 pm
Forum: PDF-XChange Drivers API SDK
Topic: PDF's not Created When the Application is Launched from a Service
Replies: 48
Views: 27171

Re: PDF's not Created When the Application is Launched from a Service

If the printer cannot be used from a service then do you have any suggestions on how we can utilise the printer from an unattended process?