psiegman / epublib

a java library for reading and writing epub files
http://www.siegmann.nl/epublib
1.04k stars 313 forks source link

PDF Conversion #108

Open marbetschar opened 7 years ago

marbetschar commented 7 years ago

Is it possible, to convert an ePub to PDF using your library?

If not (what I assume), what would be the best starting point to get this done based upon the work you have already done?

psiegman commented 7 years ago

Hi Marco,

For now I'd use calibre for this.

regards,

Paul

On Tue, May 2, 2017 at 11:20 PM, Marco Betschart notifications@github.com wrote:

Is it possible, to convert an ePub to PDF using your library?

If not (what I assume), what would be the best starting point to get this done based upon the work you have already done?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/psiegman/epublib/issues/108, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJcgjqamIla_SZ3TnaT3CWXcW8L8Tyxks5r154QgaJpZM4NOs8H .

marbetschar commented 7 years ago

Hi Paul,

Thanks for your instant response. Yeah, basically you're right and I've already played with it. Calibre works quite well.

Unfortunately I'd like to embed this functionality within an app for the macOS App Store. That said, calibre can't be used due to it's dependency on the Qt Framework. Also I've tried pandoc, but I can't get BasicTex embedded within the app itself (Xcode always throws errors when I try to upload).

That's why I'm in need of an alternative solution. One which runs locally and does not force the user to have the ePub uploaded to any cloud convert service provider (apart from the fact, that the results with those are quite ugly most times).

This journey lead me to your GitHub repo and this question ;) Do you have any other ideas?

psiegman commented 7 years ago

In that case try the html-to-pdf route.

Try a tool like https://code.google.com/archive/p/flying-saucer/ or http://developers.itextpdf.com/itext-7.

This also looks promising: http://pdfkit.org/

regards,

Paul

On Wed, May 3, 2017 at 9:49 AM, Marco Betschart notifications@github.com wrote:

Hi Paul,

Thanks for your instant response. Yeah, basically you're right and I've already played with it. Calibre works quite well.

Unfortunately I'd like to embed this functionality within an app for the macOS App Store. That said, calibre can't be used due to it's dependency on the Qt Framework. Also I've tried pandoc, but I can't get BasicTex embedded within the app itself (Xcode always throws errors when I try to upload).

That's I'm in need of an alternative solution. One which runs locally and does not force the user to have the ePub uploaded to any cloud convert service provider (apart from the fact, that the results with those are quite ugly most times).

This journey lead me to your GitHub repo and this question ;) Do you have any other ideas?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/psiegman/epublib/issues/108#issuecomment-298843978, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJcgpC1q2zg4MGcdc8tL_cN9sni-TbLks5r2DFsgaJpZM4NOs8H .