Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,008 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,008 Points

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