PAH Font Settings

Hi everyone,

I am following the PAH instructions for using the XML config file to set the font settings in our PAH PDFs, but I am not seeing any results! Still getting same font in my return that doesn't seem to be specified anywhere...

Currently, the XML in the file is as follows:

<FontSettings>

<!--global defaults-->
   <add key="_FontFamily" value="TimesRoman"/>
  <add key="_FontSize" value="12"/>

</FontSettings>

with appSettings "USE_LABEL" key with a value of "true"

But no change! I also tried specifying the PDF Template (ex. "2179_FontFamily" instead of "_FontFamily") and still no change.

Also probably worth nothing that if our appSettings USE_LABEL key is set to "false", the PDF does not respect the settings in the Adobe file.

Any advice? Thank you! 

frannie

Parents
  • Unknown said:

    I am following the PAH instructions for using the XML config file to set the font settings in our PAH PDFs, but I am not seeing any results! Still getting same font in my return that doesn't seem to be specified anywhere...

    Currently, the XML in the file is as follows:

    This was quite fiddly to set up, and didn't work for us until we set per-field, perf-PDF settings, e.g. here are our values for one PAH ticket design PDF:

     

    <!-- pdf 2207 --> 

    <!-- perf dt -->

    <add key="2207_6647_FontFamily" value="Helvetica" />

    <add key="2207_6647_FontSize" value="16" />

    <!-- perf desc -->

    <add key="2207_6649_FontFamily" value="Helvetica" />

    <add key="2207_6649_FontSize" value="12" />

    <!-- Salutation1 -->

    <add key="2207_6651_FontFamily" value="Helvetica" />

    <add key="2207_6651_FontSize" value="12" />

    <!-- Order No -->

    <add key="2207_6655_FontFamily" value="Helvetica" />

    <add key="2207_6655_FontSize" value="9" />

    <!-- Customer Number -->

    <add key="2207_6652_FontFamily" value="Helvetica" />

    <add key="2207_6652_FontSize" value="9" />

    <!-- Base Price -->

    <add key="2207_6667_FontFamily" value="Helvetica" />

    <add key="2207_6667_FontSize" value="9" />

    <!-- Ticket No -->

    <add key="2207_6659_FontFamily" value="Helvetica" />

    <add key="2207_6659_FontSize" value="9" />

  • hi Chris - thanks for your response! So to be clear, you set font and size for each dynamic element on the PDF template?

    and then, i'm a little confused by the directions - above that, do you ALSO need to have a global config setting and a per PDF config setting? or is what you have provided the extent of your formatting?

    thank you!!

    frannie

  • Unknown said:

    hi Chris - thanks for your response! So to be clear, you set font and size for each dynamic element on the PDF template?

    Yes. Each dynamic element in each PDF, just like the example I pasted in.

    Unknown said:

    and then, i'm a little confused by the directions - above that, do you ALSO need to have a global config setting and a per PDF config setting? or is what you have provided the extent of your formatting?

    Within the FontSettings we have a global default, and one per-PDF setting, but I don't think they're ever used, e.g. the one per-PDF entry is for a PDF that doesn't exist. 

    The (very lengthy) per-PDF, per-element settings were what did the trick for us.

  • Hi Guys

    You can also set the Use Label value in the font settings.  This will then use the formatting from the PDF document rather than the default font.

     <add key="USE_LABEL" value="false"/> 

    Thanks

    Nick

Reply Children
No Data