IMPORTANT NOTICE:  As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site.   We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site.  We are leaving this site open and active so you can post and hopefully get a response until the migration is complete.   Once complete, the URL  that currently takes you to this site will take you to our new site so your bookmarks will work as always.  Please read the information on a New Login Process

  • State Not Answered
  • Date
  • Date 21 Jan 2019 21:50
  • Replies 1 reply
  • Subscribers 501 subscribers
  • Views 94 views
Product Documentation

C$PDF Loading TrueType Fonts

Trying to load true type fonts with C$PDF using the following line of code and receiving the error message "invalid or missing parameter"

call "C$PDF" using HPDF-LOADTTFONTFROMFILE HPDF-DOC, "C:/windows/fonts/arial.ttf", HPDF-TRUE

Hoping someone has load true type fonts before and can assist with an example.

I did notice on the haru documentation that HPDF_LoadTTFontFromFile returns a font name and the Extend documentation doesn't appear to support the font name return.



  • 01 detail-font-name pic x(128) .
    01 embed-font-arg pic x(2).
    call "C$PDF" using HPDF-LoadTTFontFromFile, HPDF-Doc,
    detail-font-filename, embed-font-flag, detail-font-name
    call "C$PDF" using HPDF-LoadTTFontFromFile, HPDF-Doc,
    "C:/windows/fonts/arial.ttf", "-e", detail-font-name