Drupal generate pdf node




















PDF generation has the potential to be a server intensive task and this method seemed inefficient to me, aside from my reluctance to ever have any kind of PHP evaluation module enabled in Drupal.

This caused me to settle on the print module, which is also better supported and offers many other options for output that may prove useful. Next we need to decide on our PDF generation library, I am going to suggest you use wkhtmltopdf and explain why later, as I want to build something to compare first. Do this by visiting the wkhtmltopdf website and follow the instructions for your setup.

Remember it will need to be installed on local and production sites. After installing you need to create an alias to the wkhtmltopdf executable into your Drupal libraries folder, i. If you are installing under Ubuntu, I ran into some issues with the official archive, I recommend installing manually from the links above. This ensures that we have no margins added by wkhtmltopdf and can rely on our CSS output.

We are also rendering at dpi for print. A quick note on images. There are options for setting image dpi rendering here, but of course if someone uploads a 72dpi image and it is upscaled to dpi, it will look poor. Getting this right is a combination of configuration and user training.

Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

Visit chat. Related 0. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Related Hot Network Questions. Asked 4 years ago. Active 11 months ago.

Viewed 12k times. Improve this question. If you have some technical skills, you might be able to implement a print service like AthenaPDF. Do you know if it works on a Drupal instance?

I cannot find any documentation outside of ones found on Docker's site regarding it — usernameabc. I think it can also be run on-demand on the same server, but its been a while since I tried. Kevin i am going to research the on-demand approach to see if i can get that to run because not sure we can get a new instance.

Add a comment. Active Oldest Votes. Use new host of print module Printable Module This is the new home of the print module. Improve this answer. Yuseferi Yuseferi



0コメント

  • 1000 / 1000