Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

TextStamp throws NullPointerException when ran on Linux Server

$
0
0
So the code I am currently working with works fine when I run it on a windows environment. However I have built it to run on an Oracle Linux server and that is where I started running into issues. After debugging I noticed it was throwing the error when it called 

TextStamp textStamp = new TextStamp("Test Text"); 

At first the error was Font Helvetica not found. After I got the font path working appropriately (or at least I think I did) it has now just started throwing NullPointerExceptions and I have no idea what is causing this issue. I also found that calling 
FormattedText test = new FormattedText("Test Text"); 
is throwing the same error I have a feeling it may still have something to do with the fonts but I am not really sure what to do. I don't know if you need any other parts of my code, but if you do I will be happy to re-post those portions.



Viewing all articles
Browse latest Browse all 3131

Trending Articles