Title: Export PDF error
Last modified: December 18, 2018

---

# Export PDF error

 *  Resolved [napathello](https://wordpress.org/support/users/napathello/)
 * (@napathello)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/export-pdf-error/)
 * Hi
 * try export PDF have error on stock central
 * `The HTML code size is larger than pcre.backtrack_limit 1000000. You should use
   WriteHTML() with smaller string lengths.`
 * error on PO page
 * `Cannot find TTF TrueType font file "Garuda-Bold.ttf" in configured font directories.`
 * thank you
    -  This topic was modified 7 years, 5 months ago by [napathello](https://wordpress.org/support/users/napathello/).

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

 *  Plugin Author [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * (@salvamb)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/export-pdf-error/#post-11002195)
 * Hi [@napathello](https://wordpress.org/support/users/napathello/),
 * The first error is happening due to the limit you have set by default on your
   PHP. If you are trying to export a large amount of products, you can try to export
   them by parts or to change your php.ini to increase the pcre.backtrack_limit 
   in your php.ini, for example to 5000000
 * More info about this PHP limit:
    [http://php.net/manual/en/pcre.configuration.php](http://php.net/manual/en/pcre.configuration.php)
 * The second error is due to a font that is used by the mPDF library for your specific
   language that is missing. We’ll add the missing font to the next update.
 * Best Regards,
    Salva.
    -  This reply was modified 7 years, 5 months ago by [Salva Machi](https://wordpress.org/support/users/salvamb/).
 *  [Mike Tan](https://wordpress.org/support/users/mike-tan/)
 * (@mike-tan)
 * [7 years ago](https://wordpress.org/support/topic/export-pdf-error/#post-11602580)
 * Hi,
 * I have this problem when exporting inventory using ATUM, please help
 * Cannot find TTF TrueType font file “../../../../assets/fonts/atum-icon-font.ttf”
   in configured font directories.
    -  This reply was modified 7 years ago by [Mike Tan](https://wordpress.org/support/users/mike-tan/).
 *  Plugin Author [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * (@salvamb)
 * [7 years ago](https://wordpress.org/support/topic/export-pdf-error/#post-11602614)
 * Hi Mike,
 * Please confirm that you have the atum-icon-font.ttf in this path:
 * /wp-content/plugins/atum-stock-manager-for-woocommerce/assets/fonts/
 * And that has the right file permissions.
    You have more info about file permissions
   in WordPress here:
 * > [Changing File Permissions](https://wordpress.org/support/article/changing-file-permissions/)
 * Best Regards,
    Salva.
 *  [Mike Tan](https://wordpress.org/support/users/mike-tan/)
 * (@mike-tan)
 * [7 years ago](https://wordpress.org/support/topic/export-pdf-error/#post-11603800)
 * Hi Salva,
 * I have it in my directory with 0644 permission. What should I change it to?
 *  Plugin Author [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * (@salvamb)
 * [7 years ago](https://wordpress.org/support/topic/export-pdf-error/#post-11604298)
 * 0644 is not the right permission for a directory. Please read the article I linked
   before:
    - All directories should be 755 or 750.
    - All files should be 644 or 640. Exception: wp-config.php should be 440 or 
      400 to prevent other users on the server from reading it.
    - No directories should ever be given 777, even upload directories. Since the
      php process is running as the owner of the files, it gets the owners permissions
      and can write to even a 755 directory.
 * Thank you,
    Salva.
 *  [Mike Tan](https://wordpress.org/support/users/mike-tan/)
 * (@mike-tan)
 * [7 years ago](https://wordpress.org/support/topic/export-pdf-error/#post-11606444)
 * Yes, I have all the correct settings but I’m still getting the error message.
 * Regards,
    Mike
 *  Plugin Author [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * (@salvamb)
 * [7 years ago](https://wordpress.org/support/topic/export-pdf-error/#post-11608387)
 * Hi Mike,
 * As this is the first time a user notifies us about such error, I suspect is something
   related to your hosting or web server configuration. Please ask your hosting 
   provider about this issue or try a different host.
 * Best Regards,
    Salva.
    -  This reply was modified 7 years ago by [Salva Machi](https://wordpress.org/support/users/salvamb/).

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

The topic ‘Export PDF error’ is closed to new replies.

 * ![](https://ps.w.org/atum-stock-manager-for-woocommerce/assets/icon.svg?rev=1634692)
 * [ATUM WooCommerce Inventory Management and Stock Tracking](https://wordpress.org/plugins/atum-stock-manager-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/atum-stock-manager-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/atum-stock-manager-for-woocommerce/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Salva Machi](https://wordpress.org/support/users/salvamb/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/export-pdf-error/#post-11608387)
 * Status: resolved