![]() |
#1 |
Enthusiast
![]() ![]() Posts: 26
Karma: 161
Join Date: Feb 2008
Device: Sony PRS505
|
HTML to PDF via mozilla
About
----- Convert HTML to PDF with mozilla rendering engine. The best rendering application of HTML is web browser such as FireFox(Mozilla), but full function web browser is too large for some devices such as ebook reader. One of the solution is to pre-render HTML on PC with web browser and send the resulting PDF to devices. * Usage and configuration Make sure you have Xulrunner correctly installed. xulrunner --app html2pdf/application.ini [-pw <width>] [-ph <height>] \ file:///tmp/foo.html /tmp/foo.pdf -pw and -ph is to used to specify paper width and height. mb_html.tar.gz and mb.pdf is an example html and result. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,451
Karma: 1550000
Join Date: Sep 2008
Location: Maryland, USA
Device: Nook Simple Touch, HPC Evo 4G LTE
|
Mmm, I haven't tried this particular method, though when I tried to save html files as PDFs using firefox on the Mac, I ended up having limited success. I might have had more luck if I rewrote the style sheets. That being said, I was trying to save the file as a PDF defined for a 5" screen.
I found PrinceXML handled the job very well once I defined the style sheet for my reader. -- Bill |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,187
Karma: 25133758
Join Date: Nov 2008
Location: SF Bay Area, California, USA
Device: Pocketbook Touch HD3 (Past: Kobo Mini, PEZ, PRS-505, Clié)
|
Quote:
For people with Acrobat Pro, it can either go in C:\Program Files\Adobe\Acrobat 7.0\Distillr\Settings or C:\Documents and Settings\All Users\Documents\Adobe PDF\Settings. People using other print drivers would have to look for where the options for those are saved. |
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,184
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,187
Karma: 25133758
Join Date: Nov 2008
Location: SF Bay Area, California, USA
Device: Pocketbook Touch HD3 (Past: Kobo Mini, PEZ, PRS-505, Clié)
|
Is very simple. It's settings that anyone could do--if they knew which of the dozen-odd buttons in the dialogue box to click on, and which tab to select, and when to click "Options," and which dropdowns are useful and which ones to skip because the later click will invalidate them...
Once you know the settings exist, it's a matter of seconds to set them, but it's nice to have a saved set for whatever kinds of PDF conversion you do most often. Once this is installed, you can use Word, change your page size to 3.47x4.86 with whatever margin you like, and in the Adobe PDF menu, click "Change conversion settings." |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Bookaholic
![]() ![]() Posts: 72
Karma: 142
Join Date: Dec 2008
Device: Kindle 1, 3, Ipad
|
Elfwreck
I read from How to create optimized sony pdf, and they mention 3.47x4.54 page size for sony 505 and your settings are little off, any particular reason?
|
![]() |
![]() |
![]() |
#7 | |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 |
Bookaholic
![]() ![]() Posts: 72
Karma: 142
Join Date: Dec 2008
Device: Kindle 1, 3, Ipad
|
llasram
I just happen to notice if you are in landscape mode the last line in bottom is dim as compared to other lines and it only happens in landscape mode, in portrate mode if text flows in that area, it would not exhibit any anomaly, changing text size does not not make a difference, still that area is murky, I happen to read some pdf in landscape mode, therefore noticed it
|
![]() |
![]() |
![]() |
#9 | |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Bookaholic
![]() ![]() Posts: 72
Karma: 142
Join Date: Dec 2008
Device: Kindle 1, 3, Ipad
|
llasram
Thanks, it makes lot of sense.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF to HTML | Mamaijee | Calibre | 3 | 10-01-2010 12:45 AM |
Calibre Recipe HTML content differs from raw html of index.html. | krunk | Calibre | 4 | 09-20-2010 09:48 PM |
PDF to HTML | ThomasMcKean | Calibre | 1 | 01-08-2010 05:49 AM |
PDF, HTML, Comics | Operator23 | Which one should I buy? | 9 | 12-30-2008 03:22 AM |
PDF and HTML Highlighting possible? | mabhobs | iRex | 1 | 07-21-2007 03:10 AM |