Viewing 1 post (of 1 total)
  • Author
    Posts
  • #26716

    Dear supporter,

    I’ve a question about including fonts directory when i run java class which is not in class path.

    When i run java class using console mode it works fine with including fonts folder.

    java -Xmx512m -cp pd4ml.jar;. Converter “$(tempDir)/$(ModuleName).html” “$(tempDir)/$(ModuleName).pdf” “file:fonts”

    By the way i need to run this class the other directory.
    At this time i struggling to include fonts folder which i located under the pd4ml.jar class path as follows but failed.

    _pdf.useTTF(“file:../../../../../jar/PD4ML/fonts”, true);
    _pdf.useTTF(“file:fonts”,true);
    _pdf.useTTF(“java:fonts”,true);

    Finally i tried to run copy font folders to this run directory and found out it works with _pdf.useTTF(“file:fonts”,true);

    My question is
    Is there any way to set fonts folder without copying those stuff?

    Kind regards,
    Gabriel.

Viewing 1 post (of 1 total)

The forum ‘Troubleshooting’ is closed to new topics and replies.