Views PDF takes an extremely long time to compile its output when field collections and other content in complex reports are involved. When a PAGE is added to the view there does not seem to be a noticeable delay in the preview and therefore it is taking a long time in the generation of the pdf, not querying the structure of the relationships or pulling data from the related field collection views. Once a pdf has been generated for the first time, it is much faster, presumably due to some caching even though caching has not been explicitly enabled on the view. Try it out for yourself here:

www.nicwiltshire.com/drupal7
Log in as:
demo
demo

Go to nicwiltshire.com/drupal7/node/118
Click on the pdf generator popup on the left sidebar.

CommentFileSizeAuthor
slow pdf export details.txt97.16 KBcedartowerservices

Comments

cedartowerservices’s picture

I'm posting this comment in reference to the slow pdf generation as I think I have solved the issue. I was using PNG files in certain fields (user signatures) and once I switched to jpg the pdfs generated very quickly. It seems there are some inherent incompatibilities with views pdf and png - and additional settings on your web server affect how this plays out. I migrated to a dedicated server after this problem and my pdfs crashed completely - on the previous server they worked, albeit slowly. Once jpgs were used the whole problem disappeared.

simon georges’s picture

Category: bug » support
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.