DIGIT-ARC read-only archive · snapshot: July 23, 2026

HTML to PDF conversion

26 posts · originally from https://geek.digit.in/community/threads/html-to-pdf-conversion.152373/

Niilesh
Niilesh Original post #1
Feb 6, 2012 at 9:42 PM
Hey Guys I have to submit computer HTML project but it's formatting is not retained while printing
So guys I need help
Can anyone convert This into PDF or any other format in which formatting is preserved?(like JPEG)
dashing.sujay
Feb 7, 2012 at 12:01 AM
Wht the hell your zip is giving errors while extraction? :confused:
topgear
topgear #3
Feb 7, 2012 at 5:49 AM
^^ nope the archive is working ( I mean extracted ) just fine - I've used winrar 3.80 to extract it - re-download it to read about
global warming
;-)

@ OP - you can use this in future ;-)
Free HTML to PDF Converter - Download.com
buddyram
Feb 7, 2012 at 10:09 AM
^^thats fine.... bro
but the OP files was not able to extract....:evil:
Niilesh
Niilesh #7
Feb 7, 2012 at 5:30 PM
OK. I have done it for you. Converted to PDF and with the same layout. You can download it from HERE
Thanxs but The image in the introduction page is not aligned (not checked the whole document)
Looks Like i will have to take screenshot and then print it
Wht the hell your zip is giving errors while extraction? :confused:
Maybe because your extractor doesn't support LZMA method of compression
or maybe the file is broken


@ OP - you can use this in future ;-)
Free HTML to PDF Converter - Download.com
Ya, i also found that by googling but cnet downloader doesn't start without checking to install an unwanted toolbar
PS: I used Total HTML converter but it was also not perfect :(

^^thats fine.... bro
but the OP files was not able to extract....:evil:
I am the OP not sujay :|
dashing.sujay
Feb 7, 2012 at 5:33 PM
^A suggestion- Just print it via chrome. It gives an option to save in pdf. Bingo! :)
Vyom
Vyom #9
Feb 7, 2012 at 5:48 PM
^^Yes, it did give errors while unzipping it using winRAR, but extracted fine when used 7zip.
So use 7zip to un-compress it.
Niilesh
Niilesh #10
Feb 7, 2012 at 6:01 PM
^ It Also messes up formating
Trying it myself (WIP)

Can anyone split these 4 images so that they can be printed on a4 size paper?

Project - Imgur

BTW one page still remaining will do it after returning from tuition (already late)

EDIT: 5th page - *imgur.com/QhmcF
Vyom
Vyom #11
Feb 7, 2012 at 6:41 PM
Don't have that much time, but I have better idea.

Why not open MS-Word. Then browse open the HTML files in it. That's it. You will now have HTML document converted to Word format. Now you can print it after just a little formatting! :D

PS: Goto View -> Print Layout, to get the page in, well, "Print Layout: :p
dashing.sujay
Feb 7, 2012 at 7:18 PM
^ It Also messes up formating
Trying it myself (WIP)

Can anyone split these 4 images so that they can be printed on a4 size paper?

Project - Imgur

BTW one page still remaining will do it after returning from tuition (already late)

All 4 images on 1 paper?
Niilesh
Niilesh #13
Feb 7, 2012 at 8:28 PM
All 4 images on 1 paper?

No Every image should be cut so that it prints on a4 size paper(s) without much change in dimensions(and aspect ratio)

Don't have that much time, but I have better idea.

Why not open MS-Word. Then browse open the HTML files in it. That's it. You will now have HTML document converted to Word format. Now you can print it after just a little formatting! :D

PS: Goto View -> Print Layout, to get the page in, well, "Print Layout: :p

Ya, I know that but the problem is i am using libreoffice currently
and don't want to download and install MS Office (trail or ..)
Vyom
Vyom #14
Feb 7, 2012 at 8:46 PM
^ Ok, man. Here you go. I had Word installed. So here is the best which I was able to do. Although I believe HTML files can be opened in Libre office too.

HTML Converted to DOC

PS: If you can't open DOC files, I can re upload in PDF. I have not directly shared as PDF, since you can edit the page yourself before printing.
Niilesh
Niilesh #15
Feb 7, 2012 at 9:12 PM
^ Ok, man. Here you go. I had Word installed. So here is the best which I was able to do. Although I believe HTML files can be opened in Libre office too.

HTML Converted to DOC

PS: If you can't open DOC files, I can re upload in PDF. I have not directly shared as PDF, since you can edit the page yourself before printing.

yes LibreOffice can open HTML files but i was not able to align images horizontally :-?

Thanx man it's perfect but IDK why the images are not showing up while opening with LibreOffice. just a blank box is showing.
dashing.sujay
Feb 7, 2012 at 9:20 PM
No Every image should be cut so that it prints on a4 size paper(s) without much change in dimensions(and aspect ratio)

I guess while printing an image it asks if it needs to fit in A4 size.

*i.imgur.com/GsHn3.png
I
ishan_kkr #17
Feb 7, 2012 at 9:23 PM
try dopdf..

It's a great software,,

Lets you save many types of files in .pdf..
Vyom
Vyom #18
Feb 7, 2012 at 9:28 PM
yes LibreOffice can open HTML files but i was not able to align images horizontally :-?

Thanx man it's perfect but IDK why the images are not showing up while opening with LibreOffice. just a blank box is showing.

No problem. Maybe Libre office isn't completely compatibility with .doc files.

Here is the files converted to PDF: ProjectPDF.zip

Btw, another tip from next time. You can just copy + pate the contents of HTML file in your Libre office. That would have worked too! Enjoy! ;)
Niilesh
Niilesh #19
Feb 7, 2012 at 9:30 PM
I guess while printing an image it asks if it needs to fit in A4 size.

*i.imgur.com/GsHn3.png
Yes, but I think it resizes the whole image to fit it in a4 size paper
Do not split it

try dopdf..

It's a great software,,

Lets you save many types of files in .pdf..
Will try it but don't have much hope
dashing.sujay
Feb 7, 2012 at 9:35 PM
^Split? I am not able to understand what actually you want to do. :confused:
Niilesh
Niilesh #21
Feb 7, 2012 at 9:56 PM
Btw, another tip from next time. You can just copy + pate the contents of HTML file in your Libre office. That would have worked too! Enjoy! ;)

I tried that long time before :p
But LibreOfiice doesn't even properly copy contents of websites(like wikipedia)
This thing make me miss MS Office

BTW Can you try to include the background
Also one image is missing in the page Influence and Causes because of format incompatibility

Use this - *i.imgur.com/9hzkK.gif

^Split? I am not able to understand what actually you want to do. :confused:

*i.imgur.com/806ag.png
Vyom
Vyom #22
Feb 7, 2012 at 10:34 PM
BTW Can you try to include the background
Also one image is missing in the page Influence and Causes because of format incompatibility

Well.. I tried printing to PDF while setting the background of the document to the background image. But due to some strange reason, it wasn't including the background image in the PDF. So I found a turn around. Instead of setting the background image as background I inserted the image and set it's Visibility to "Behind Text" and then printed to PDF.

Bingo. It worked this time. :) But too much efforts! :|
Anyway, looks like your problem is solved. Can't help more!

File: ProjectPdfFinal.zip
Niilesh
Niilesh #23
Feb 8, 2012 at 5:16 PM
^ Thanks a lot
Rep added
M
Feb 8, 2012 at 5:41 PM
i think u can try pdf factory too :)
I
ishan_kkr #25
Feb 8, 2012 at 9:04 PM
[/SPOILER]
Yes, but I think it resizes the whole image to fit it in a4 size paper
Do not split it


Will try it but don't have much hope

give it a try.. U will find it useful indeed..
topgear
topgear #26
Feb 9, 2012 at 4:19 AM
I think Op's issue is solved now - if not Op can PM any mod to open this thread again ;-)