Title: PDF Resolution
Last modified: November 1, 2019

---

# PDF Resolution

 *  Resolved [nsitu](https://wordpress.org/support/users/nsitu/)
 * (@nsitu)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/pdf-resolution/)
 * Much like [@aiye89](https://wordpress.org/support/users/aiye89/), I had an issue
   with PDF resolution. [@mennolui](https://wordpress.org/support/users/mennolui/)
   you provided a helpful answer here:
    [https://wordpress.org/support/topic/pdf-slide-bad-resolution/](https://wordpress.org/support/topic/pdf-slide-bad-resolution/)
 * I solved a similar problem by modifying the resolution in the following script:
   
   foyer/includes/class-foyer-image-editor-imagick.php
 * Around line #72 we fine the following line:
    `$this->image->setResolution( 72,
   72 );`
 * I changed this line to read as follows:
    `$this->image->setResolution( 300, 300);`
 * As a result the PDF slides are generated at a higher resolution.
 * However, I would like to be able to change this without having to modify the 
   plugin itself. [@mennolui](https://wordpress.org/support/users/mennolui/) can
   you please make this resolution setting adjustable? For example via a WordPress
   hook? That way we could set the resolution in the theme’s functions.php rather
   than modifying the plugin. Alternately if you could add some User Interface to
   achieve this it would also do the trick.
 * Thanks for a great plugin.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Menno Luitjes](https://wordpress.org/support/users/mennolui/)
 * (@mennolui)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/pdf-resolution/#post-12106261)
 * Hi [@nsitu](https://wordpress.org/support/users/nsitu/), good to hear that worked.
 * Ideally I would like to detect the page size of the PDF, then dynamically set
   the resolution based on the page size so the output is always 1920×1080 (or fills
   that box). Preferably using WordPress built in PDF handling. But I have not found
   an easy way to do this.
 * Second best IMO would be adding a user setting per PDF slide. This is on my list,
   but might take a while to implement.
 * Best,
    Menno

Viewing 1 replies (of 1 total)

The topic ‘PDF Resolution’ is closed to new replies.

 * ![](https://ps.w.org/foyer/assets/icon-256x256.png?rev=1752613)
 * [Foyer - Digital Signage for WordPress](https://wordpress.org/plugins/foyer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foyer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foyer/)
 * [Active Topics](https://wordpress.org/support/plugin/foyer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foyer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foyer/reviews/)

## Tags

 * [pdf](https://wordpress.org/support/topic-tag/pdf/)

 * 1 reply
 * 2 participants
 * Last reply from: [Menno Luitjes](https://wordpress.org/support/users/mennolui/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/pdf-resolution/#post-12106261)
 * Status: resolved