Page 1 of 1

Printing EPUB files to printer driver by code HELP

Posted: Thu Sep 08, 2016 6:52 am
by AndyC
We use the PDF X-Change SDK, specifically using the driver API method to print files silently to PDF output.

We are tasked with the need to print EPUB files to PDF via the PDF X-Change printer driver and we seem to be unable to do so. We installed the Adobe Digital Edition EPUB reader to open EPUB files, but unfortunately we are unable to print to the PDF X-Change driver in code. We were wondering if you could assist with recommendations on how to do this using the SDK.

Thanks in advance.

Andy

Re: Printing EPUB files to printer driver by code HELP

Posted: Thu Sep 08, 2016 7:42 am
by John - Tracker Supp
Andy,

Before getting to far into this - can you advise you can do so directly from the EPUB reader user interface to the driver (though this will work in eval mode only and put watermarks on output) just to establish there is no issue without trying to do so in code as an initial proving step ...

Thanks

Re: Printing EPUB files to printer driver by code HELP

Posted: Thu Sep 08, 2016 8:01 am
by AndyC
Hi John,

Thank you for the speedy response.

I have tried printing the EPUB file from the reader to the printer driver, but it seems to create blank pages in an infinite loop. I can view the EPUB file correctly in the reader. Does not mean that the EPUB file is not compatible with the reader?

The customer is creating their own EPUB files, but not sure how or with what. I have attached a sample copy of their file.

Thanks John for your help and I look forward to a solution to this.

Andy

Re: Printing EPUB files to printer driver by code HELP

Posted: Thu Sep 08, 2016 8:11 am
by John - Tracker Supp
Hi Andy - I have asked one of our Driver SDK specailists to take a look and we will revert as soon as possible, though please note this may not be until later as he is based in our Vancouver Island office ...

Thanks for your patience.

Re: Printing EPUB files to printer driver by code HELP

Posted: Thu Sep 08, 2016 8:16 am
by AndyC
Thank you very much John. I look forward to his recommendation.

Andy

Re: Printing EPUB files to printer driver by code HELP

Posted: Fri Sep 09, 2016 9:13 am
by Roman - Tracker Supp
Hello Andy,

The printing fails because the sample file contains an embedded PostScript data and Adobe Digital Edition EPUB reader tries to pass this data directly to the printer.
PDF-XChange does not support embedded PostScript in print job.

Re: Printing EPUB files to printer driver by code HELP

Posted: Fri Sep 09, 2016 9:54 am
by John - Tracker Supp
Its also worth noting Andy that many physical and Virtual printers (particularly the latter) will have issues with these files unless specific 'PS' injection is provided by the manufacturer and in fact - going further, it would appear that Adobe have with the epub reader tried to block printing epub docs to virtual printers, for example it also blocks printing to the MS Doc Converter printer. This is probably in an effort to reduce/block ebook piracy.

Re: Printing EPUB files to printer driver by code HELP

Posted: Fri Sep 09, 2016 10:20 am
by AndyC
Hi Roman and John,

Thank you very much for taking the time to investigate the issue.

The customer is using an unknown EPUB creator for this sample file that causes this issue. Is there an EPUB software that you could recommend that could allow the customer to create a good file format that we can print through the PDF X-Change without any issue? Basically, we are looking at a way to be able to create EPUB files that can be printed through the PDF X-Change to convert them to PDF.

Thanks again for all your help.

Andy

Re: Printing EPUB files to printer driver by code HELP

Posted: Fri Sep 09, 2016 10:30 am
by John - Tracker Supp
I would be only too pleased to help if we did Andy - but I regret our knowledge of such creators at this time is very limited and I would be no better placed than you or your client I am afraid ...

Re: Printing EPUB files to printer driver by code HELP

Posted: Fri Sep 09, 2016 12:04 pm
by AndyC
Thanks anyway John. You and Roman have been a great help. I will look around and see if there any good EPUB software out there and maybe report back here in case other users are after the same objective.

Thanks again.

P.S.: Vancouver Island is beautiful... you guys live in paradise...

Andy

Re: Printing EPUB files to printer driver by code HELP

Posted: Fri Sep 09, 2016 1:39 pm
by John - Tracker Supp
Its not so bad Andy - but I have just moved to the UK - somethings you miss and some you don't, Good luck in your search...