Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

justinw
justinw
14,517 Points

HTML to PDF

Is it possible to take a HTML file with inline CSS and convert it to a PDF document while rendering the same quality, images, background colors, etc? If so, how would I achieve this?

Adobe Acrobat Pro DC says they can do this, but can't, doPDF is useless along with several others.

Thanks

jason chan
jason chan
31,009 Points

Print screen with photoshop turn into jpg then turn into pdf. Well thats one way.

1 Answer

justinw
justinw
14,517 Points

Thanks jason chan Problem is the designs are in 300DPI so they don't fit within the screen, if I zoom in / out it throws things off.

justinw
justinw
14,517 Points

Figured it out, opened it in Chrome, CMD + P, save as PDF then unchecked Header / Footer, checked Background and changed Portrait to Tabloid.

jason chan
jason chan
31,009 Points

oh yeah that is another way. print from chrome can also change what your looking at into pdf.