Control text font size through JS

Is it possible to control the text font size programmatically through the FPD JS API? Ideally I'd be able to do something like FPD.text.[..].setFontSize(48); 

  • There is no direct method like FPD.text.[..].setFontSize(48). However, you can try it using FPD's JavaScript API. 

    Getting Started with FPD JS: 


    https://jsdoc.fancyproductdesigner.com/

  • Well, there is no direct method like FPD.text.[..].setFontSize(48). However, you can try it using the FPD's JavaScript API. 


    Getting Started with FPD JS:


    https://jsdoc.fancyproductdesigner.com/

  • Well, there is no direct method like FPD.text.[..].setFontSize(48). However, you can try it using the FPD's JavaScript API. 


    Getting Started with FPD JS:


    https://jsdoc.fancyproductdesigner.com/

  • Yes, you can control the text font size programmatically using the FPD (Foxit PDF) JavaScript API, although it won't be exactly the same as FPD.text.[..].setFontSize(48); directly. The method for controlling the font size depends on how you work with text in the PDF document. Check the Foxit PDF SDK documentation for precise methods, as the exact API can vary depending on the version or type of Foxit PDF SDK you're working with (e.g., JavaScript API for the web, or Desktop SDK). If FPD.text.setFontSize() does not exist, look for properties like fontSize or textSize under annotation or form field objects.

  • @Geometry Dash If you are working directly with the FPD.text object to manipulate text (not captions) you can have a method like setText but for font size you will have to adjust the properties of the text format. I hope my input helps you

  • Well, there is no direct method to achieve this, but you can try with FPD's JavaScript API


    Getting Started: 

    https://jsdoc.fancyproductdesigner.com/

Login or Signup to post a comment