Title: Cannot open PDF file
Last modified: January 16, 2022

---

# Cannot open PDF file

 *  Resolved [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * (@sixaxis)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cannot-open-pdf-file/)
 * Hi there,
 * I’m not sure after what update this happened (WordPress? WooCommerce? WooCommerce
   PDF Invoices & Packing Slips?), but now every time I create a PDF, the browser
   shows this: [https://i.imgur.com/HRvYi5K.png](https://i.imgur.com/HRvYi5K.png)
 * I have followed the steps [here](https://wordpress.org/support/topic/read-this-first-9/):
   everything is green, the error also appears with the default template, I’ve got
   enough memory (128M) and I don’t see any error after activating “Enable debug
   output” (I don’t know where I should look at, actually).
 * Could you help me troubleshoot this, please? Thanks!
 * Here you have the info from the Site Health menu.
 *     ```
       ### wp-core ###
   
       version: 5.8.3
       site_language: he_IL
       user_language: he_IL
       timezone: Asia/Jerusalem
       permalink: /%postname%/
       https_status: true
       multisite: false
       user_registration: 1
       blog_public: 1
       default_comment_status: undefined
       environment_type: production
       user_count: 17
       dotorg_communication: true
   
       ### wp-paths-sizes ###
   
       wordpress_path: ******
       wordpress_size: loading...
       uploads_path: ******
       uploads_size: loading...
       themes_path: ******
       themes_size: loading...
       plugins_path: ******
       plugins_size: loading...
       database_size: loading...
       total_size: loading...
   
       ### wp-dropins (2) ###
   
       maintenance.php: true
       object-cache.php: true
   
       ### wp-active-theme ###
   
       name: Blocksy Child (blocksy-child)
       version: undefined
       author: Creative Themes
       author_website: (undefined)
       parent_theme: Blocksy (blocksy)
       theme_features: core-block-patterns, widgets-block-editor, post-thumbnails, automatic-feed-links, responsive-embeds, html5, title-tag, custom-logo, lifterlms-sidebars, boostify-header-footer, fl-theme-builder-headers, fl-theme-builder-footers, fl-theme-builder-parts, editor-gradient-presets, editor-color-palette, menus, align-wide, customize-selective-refresh-widgets, header-footer-elementor, woocommerce, wc-product-gallery-lightbox, widgets
       theme_path: ******
       auto_update: כיבוי
   
       ### wp-parent-theme ###
   
       name: Blocksy (blocksy)
       version: 1.8.14
       author: CreativeThemes
       author_website: https://creativethemes.com
       theme_path: ******
       auto_update: כיבוי
   
       ### wp-themes-inactive (3) ###
   
       Twenty Nineteen: version: 2.1, author: צוות וורדפרס, עדכונים אוטומטיים מושבתים
       Twenty Twenty: version: 1.8, author: צוות וורדפרס, עדכונים אוטומטיים מושבתים
       Twenty Twenty-One: version: 1.4, author: צוות וורדפרס, עדכונים אוטומטיים מושבתים
   
       ### wp-mu-plugins (1) ###
   
       Gerard's plugin: version: 1.0, author: Gerard Blanco
   
       ### wp-plugins-active (32) ###
   
       Admin Menu Editor Pro: version: 2.16, author: Janis Elsts (latest version: 2.16.1), עדכונים אוטומטיים מושבתים
       Blocksy Companion (Premium): version: 1.8.16, author: CreativeThemes, עדכונים אוטומטיים מושבתים
       CAOS: version: 4.1.9, author: Daan from FFW.Press (latest version: 4.2.1), עדכונים אוטומטיים מושבתים
       Cities Shipping Zones for WooCommerce: version: 1.1.5, author: Condless, עדכונים אוטומטיים מושבתים
       Disable WooCommerce Bloat: version: 2.6.1, author: ospiotr, עדכונים אוטומטיים מושבתים
       Easy WP SMTP: version: 1.4.7, author: wpecommerce, alexanderfoxc, עדכונים אוטומטיים מושבתים
       Enable Media Replace: version: 3.6.3, author: ShortPixel, עדכונים אוטומטיים מושבתים
       Fluent Forms: version: 4.2.21, author: Contact Form - WPManageNinja LLC, עדכונים אוטומטיים מושבתים
       GenerateBlocks: version: 1.4.0, author: Tom Usborne, עדכונים אוטומטיים מושבתים
       HFD Integration: version: 2.2.0, author: HFD, עדכונים אוטומטיים מושבתים
       Instagram Feed Pro Developer: version: 5.12.9, author: Smash Balloon, עדכונים אוטומטיים מושבתים
       LiteSpeed Cache: version: 4.4.7, author: LiteSpeed Technologies, עדכונים אוטומטיים מושבתים
       Loco Translate: version: 2.5.5, author: Tim Whitlock (latest version: 2.5.6), עדכונים אוטומטיים מושבתים
       Mailchimp for WooCommerce: version: 2.5.4, author: Mailchimp, עדכונים אוטומטיים מושבתים
       Pay for Payment for WooCommerce: version: 2.1.4, author: Karolína Vyskočilová, עדכונים אוטומטיים מושבתים
       Resize Image After Upload: version: 1.8.6, author: ShortPixel, עדכונים אוטומטיים מושבתים
       ShortPixel Adaptive Images: version: 3.2.0, author: ShortPixel, עדכונים אוטומטיים מושבתים
       The SEO Framework: version: 4.2.2, author: The SEO Framework Team, עדכונים אוטומטיים מושבתים
       The SEO Framework - Extension Manager: version: 2.5.2, author: The SEO Framework Team, עדכונים אוטומטיים מושבתים
       Variation Swatches for WooCommerce: version: 2.1.1.4, author: RadiusTheme, עדכונים אוטומטיים מושבתים
       Variation Swatches for WooCommerce Pro: version: 2.0.1.1, author: RadiusTheme, עדכונים אוטומטיים מושבתים
       WooCommerce: version: 6.1.0, author: Automattic, עדכונים אוטומטיים מושבתים
       WooCommerce Coupon Exclusions: version: 1.6.0, author: itthinx, עדכונים אוטומטיים מושבתים
       WooCommerce Custom Product Badge: version: 1.0.0, author: Gerard Blanco, עדכונים אוטומטיים מושבתים
       WooCommerce Google Analytics Integration: version: 1.5.7, author: WooCommerce, עדכונים אוטומטיים מושבתים
       WooCommerce PDF Invoices & Packing Slips: version: 2.11.4, author: WP Overnight, עדכונים אוטומטיים מושבתים
       WooCommerce PDF Invoices & Packing Slips + mPDF: version: 2.2.0, author: Ewout Fernhout, עדכונים אוטומטיים מושבתים
       WooCommerce Upay Payment: version: 1.2.3, author: EOI, עדכונים אוטומטיים מושבתים
       WordPress Toolbar Editor: version: 1.4, author: Janis Elsts, עדכונים אוטומטיים מושבתים
       WPvivid Backup Plugin: version: 0.9.67, author: WPvivid Team, עדכונים אוטומטיים מושבתים
       YITH WooCommerce Dynamic Pricing and Discounts Premium: version: 3.1.0, author: YITH (latest version: 3.2.0), עדכונים אוטומטיים מושבתים
       Yoast Duplicate Post: version: 4.3, author: Enrico Battocchi & Team Yoast, עדכונים אוטומטיים מושבתים
   
       ### wp-plugins-inactive (3) ###
   
       Advanced Coupons for WooCommerce Free: version: 3.1.1, author: Rymera Web Co, עדכונים אוטומטיים מושבתים
       Advanced Coupons for WooCommerce Premium: version: 2.7.3, author: Rymera Web Co, עדכונים אוטומטיים מושבתים
       Temporary Login Without Password: version: 1.7.1, author: StoreApps, עדכונים אוטומטיים מושבתים
   
       ### wp-media ###
   
       image_editor: WP_Image_Editor_Imagick
       imagick_module_version: 1690
       imagemagick_version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org
       imagick_version: 3.4.4
       file_uploads: File uploads is turned off
       post_max_size: 256M
       upload_max_filesize: 256M
       max_effective_size: 256 MB
       max_file_uploads: 20
       imagick_limits: 
       	imagick::RESOURCETYPE_AREA: 122 MB
       	imagick::RESOURCETYPE_DISK: 1073741824
       	imagick::RESOURCETYPE_FILE: 49151
       	imagick::RESOURCETYPE_MAP: 512 MB
       	imagick::RESOURCETYPE_MEMORY: 256 MB
       	imagick::RESOURCETYPE_THREAD: 3
       imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JBG, JBIG, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
       gd_version: bundled (2.1.0 compatible)
       gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
       ghostscript_version: 9.50
   
       ### wp-server ###
   
       server_architecture: Linux 5.4.0-89-generic x86_64
       httpd_software: LiteSpeed
       php_version: 7.4.27 64bit
       php_sapi: litespeed
       max_input_variables: 1000
       time_limit: 30
       memory_limit: 256M
       max_input_time: 60
       upload_max_filesize: 256M
       php_post_max_size: 256M
       curl_version: 7.68.0 OpenSSL/1.1.1f
       suhosin: false
       imagick_availability: true
       pretty_permalinks: true
       htaccess_extra_rules: true
   
       ### wp-database ###
   
       extension: mysqli
       server_version: 10.5.13-MariaDB-1:10.5.13+maria~focal
       client_version: mysqlnd 7.4.27
   
       ### wp-constants ###
   
       WP_HOME: undefined
       WP_SITEURL: undefined
       WP_CONTENT_DIR: ******
       WP_PLUGIN_DIR: ******
       WP_MEMORY_LIMIT: 128M
       WP_MAX_MEMORY_LIMIT: 256M
       WP_DEBUG: false
       WP_DEBUG_DISPLAY: true
       WP_DEBUG_LOG: false
       SCRIPT_DEBUG: false
       WP_CACHE: true
       CONCATENATE_SCRIPTS: undefined
       COMPRESS_SCRIPTS: undefined
       COMPRESS_CSS: undefined
       WP_LOCAL_DEV: undefined
       DB_CHARSET: utf8
       DB_COLLATE: undefined
   
       ### wp-filesystem ###
   
       wordpress: writable
       wp-content: writable
       uploads: writable
       plugins: writable
       themes: writable
       mu-plugins: writable
       ```
   

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Contributor [dwpriv](https://wordpress.org/support/users/dwpriv/)
 * (@dwpriv)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cannot-open-pdf-file/#post-15265328)
 * Hi Gerard,
 * Can you open the PDF in any other program? Do you get a PDF in your email or 
   is that the PDF doesn’t get generated at all?
 *  Plugin Contributor [dwpriv](https://wordpress.org/support/users/dwpriv/)
 * (@dwpriv)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cannot-open-pdf-file/#post-15265519)
 * Gerard,
 * It appears you’re using the MPDF addon, which is likely causing the error. We’d
   recommend you use the updated version first and take it from there. [Get it here.](https://github.com/wpovernight/woocommerce-pdf-ips-mpdf/releases/tag/v2.3.0)
 *  Thread Starter [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * (@sixaxis)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cannot-open-pdf-file/#post-15266963)
 * Hi [@dwpriv](https://wordpress.org/support/users/dwpriv/),
 * Thanks for replying. I updated the plugin (thanks for that!), but the issue is
   still there. If I try to save the PDF, I can see that is 0 bytes, so it looks
   like there is an issue with the generation.
 * If it helps, if I try to add the &output=html, then it works well, although looks
   more unstyled, for example I get no logo.
 * Thanks!
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cannot-open-pdf-file/#post-15267946)
 * Could you navigate to **WooCommerce > Status > Logs** and check for logs named`
   woocommerce-pdf-ips-mpdf-xxx` and check for errors there?
 *  Thread Starter [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * (@sixaxis)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cannot-open-pdf-file/#post-15270979)
 * Hi [@pomegranate](https://wordpress.org/support/users/pomegranate/),
 * Sure, there’s a lot of these errors:
 *     ```
       2022-01-19T09:49:13+00:00 CRITICAL Error detected. PDF file generation aborted: imagecreatefromstring(): gd-png: libpng warning: iCCP: known incorrect sRGB profile
       ```
   
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cannot-open-pdf-file/#post-15271484)
 * Thanks, that helps. It seems this is probably related not to a plugin update 
   but a PHP update. Can you try to swap your logo by a JPG version (the error tells
   me it’s PNG at the moment), enable “Test mode” and test to see if you can generate
   the PDF now?
 *  Thread Starter [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * (@sixaxis)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cannot-open-pdf-file/#post-15276700)
 * Thanks [@pomegranate](https://wordpress.org/support/users/pomegranate/)!
 * Now it works well. Can I disable “Test mode” or do you need me to do something
   else?
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cannot-open-pdf-file/#post-15276710)
 * It depends – all existing invoices will still link to the old PNG logo. You can
   either open them again with test mode enabled (just once is enough to set it 
   to “JPG”) or enable “Always use the most current settings”. See: [https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/show-pdf-documents-with-the-latest-settings/](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/show-pdf-documents-with-the-latest-settings/)
 *  Thread Starter [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * (@sixaxis)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cannot-open-pdf-file/#post-15276728)
 * Okay, thank you! You got a 5-star review 🙂

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Cannot open PDF file’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Gerard Blanco](https://wordpress.org/support/users/sixaxis/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/cannot-open-pdf-file/#post-15276728)
 * Status: resolved