ConvertHyperlinks option causes some print jobs to fail

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
trumpetinc
Posts: 60
Joined: Mon Jul 28 2003

ConvertHyperlinks option causes some print jobs to fail

Post by trumpetinc » Mon Mar 13 2006

Amyuni Converter - 2.50f

We are finding that having the ConvertHyperlinks option enabled causes some print jobs to not properly issue the DOCUMENTEVENT_ENDDOCPOST event.

The flags we are using with SetFileNameOptions are as follows:

NoPrompt + UseFileName + BroadcastMessages + ConvertHyperlinks


The issue appears in some applications and not others, and in some print jobs and not in others. I have a sample encapsulated html file (.mht file) that when printed from Internet Explorer causes the issue.

Flipping ConvertHyperlinks off and on makes the lost event come back, then go away again, so I'm pretty certain that this is what is causing the problem.

- K

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan » Wed Mar 15 2006

Hello,

ConvertHyperlinks is a post processing feature. It is processed after printing end.


Depending on the application and on how it handles printing EndDocPost event may be generated when printing the document ends or not.

trumpetinc
Posts: 60
Joined: Mon Jul 28 2003

Post by trumpetinc » Wed Mar 15 2006

So this is expected behavior??? That is not at all described in the SDK documentation (and makes the EndDocPost event pretty much unusable).

Are you certain this is not a bug?

- K
Joan wrote:Hello,

ConvertHyperlinks is a post processing feature. It is processed after printing end.


Depending on the application and on how it handles printing EndDocPost event may be generated when printing the document ends or not.

Devteam
Posts: 119
Joined: Fri Oct 14 2005
Location: Montreal
Contact:

Post by Devteam » Wed Mar 15 2006

This issue might happen if the caller is resetting the printer options before printing has really ended, e.g. by calling FileNameOptions = 0. Otherwise if the hyperlinks are created in the document, then the EndDocPost event is fired right afterwards.

We would need to have more details to debug this issue.
1 - The version number of PDF Converter that you are using.
2 - Sample code showing how you are initializing the printer, printing the document and what happens after printing is over.
Amyuni Development Team

Efficient and accurate conversion to PDF, XPS, PDF/A and more. Free trials at - https://www.amyuni.com

trumpetinc
Posts: 60
Joined: Mon Jul 28 2003

Post by trumpetinc » Wed Mar 15 2006

OK - per my original post, this is 2.50f

Why don't I email you the .mht file and you can print it from Internet Explorer yourself with 'create hyperlinks' turned on? The EndDocPost event will not be fired.


Our code does nothing with the file until we receive the EndDocPost event (which is why this is such a hassle for us).

- K
Devteam wrote:This issue might happen if the caller is resetting the printer options before printing has really ended, e.g. by calling FileNameOptions = 0. Otherwise if the hyperlinks are created in the document, then the EndDocPost event is fired right afterwards.

We would need to have more details to debug this issue.
1 - The version number of PDF Converter that you are using.
2 - Sample code showing how you are initializing the printer, printing the document and what happens after printing is over.

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan » Fri Mar 17 2006

Hello,

You can send an e-mail to support@amyuni.com explaining the situation and our Engineers will take a closer look at this.

Thanks.

Post Reply