Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

PDF Stamper – UTF-8 characters appearing as boxes on stamped files.

by

Tips and Tricks HQ Support Portal › Forums › WP PDF Stamper › PDF Stamper – UTF-8 characters appearing as boxes on stamped files.

Tagged: Chinese, pdf stamper, utf8, utf8 characters

  • This topic has 5 replies, 3 voices, and was last updated 8 years, 5 months ago by admin.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • October 23, 2014 at 2:20 pm #11671
    morley
    Member

    For some reason, UTF-8 characters showed up as boxes when stamped on a recent pdf. I checked the collation, and it’s set to utf8 for all the database tables. I have UTF-8 checked in the PDF Stamper settings. The characters were entered correctly into the customer table, so it’s strange that the stamping didn’t work as expected. The eStore version is 7.1.6 and the PDF Stamper version is 4.4.5. Any ideas? Thanks.

    October 23, 2014 at 5:45 pm #66316
    wzp
    Moderator

    Can you post a link to a sample of the stamped file?

    October 23, 2014 at 6:43 pm #66317
    morley
    Member

    Unfortunately, no. However, I checked the document in Acrobat, and the stamped text is in DejaVuSansCondensed-Oblique; it’s embedded as a subset which seems as it should be. I copied the stamped text (square-looking characters), and when I pasted it elsewhere, the characters displayed properly.

    I downloaded the font and took a look at the glyph mapping. It doesn’t include Chinese characters, which is mostly why I needed the UTF8 support. Is there another (more complete) UTF8 font that could be used with PDF Stamper?

    October 23, 2014 at 10:13 pm #66318
    admin
    Keymaster

    Which language is this for? Are you trying to stamp in Chinese language?

    Is your PayPal account setup to send notification in utf-8 format?

    https://support.tipsandtricks-hq.com/forums/topic/some-characters-and-text-not-recognizable-in-the-notification-email

    October 23, 2014 at 10:44 pm #66319
    morley
    Member

    Yes, the language is Chinese. I previously configured my PayPal account to send IPNs in utf-8 per the above linked thread. The name and address for this transaction were received and entered correctly into the customers table. I believe the issue is just that the font itself doesn’t contain Chinese characters.

    October 23, 2014 at 11:27 pm #66320
    admin
    Keymaster

    I don’t fully understand what the deal is with Chinese and Japanese characters and PDF files but for some reason the standard UTF-8 doesn’t cover those languages for PDF file. We have added the following two fonts to handle Chinese characters:

    – mingliu

    – Big5

    To use them please do the following:

    1. Keep the “Use UTF-8 Font” checkbox checked in the settings.

    2. Open the “wp_pdf_stamp.php” file and search for the following line of code:

    define('WP_PDF_STAMP_USE_UTF_FONT', "1");

    Once you find it change that line to the following to make PDF stmaper use mingliu font:

    define('WP_PDF_STAMP_USE_UTF_FONT', "2");

    Alternatively, change that line to the following to use the Big-5 font:

    define('WP_PDF_STAMP_USE_UTF_FONT', "3");

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ