I am having the worst time finding help with itext. beginning to wonder if
anyone knows anything. I am using itext with coldfusion. I am new to java. I
have a lot of code that works and code that doesnt. Here is my code that I
am stuck on.

Line1 = cb.init(writer);
Line1.beginText();
Line1.setFontAndSize(newfont, javacast("float", 26.0));
text = "Show this text on the pdf.";
Line1.showTextAligned(1, text, 250, 700, 0);

Line1.endText();

I keep getting an error that says:

 The selected method setFontAndSize was not found.
Either there are no methods with the specified method name and argument
types, or the method setFontAndSize is overloaded with arguments types that
ColdFusion can't decipher reliably. If this is a Java object and you
verified that the method exists, you may need to use the javacast function
to reduce ambiguity.
 
The error occurred in C:\Inetpub\wwwroot\Test_Site\iText\export2pdf.cfm:
line 39

37 : Line1 = cb.init(writer);
38 : Line1.beginText();
39 : Line1.setFontAndSize(newfont, javacast("float", 26.0));
40 : text = "Show this text on the pdf.";
41 : Line1.showTextAligned(1, text, 250, 700, 0);

I know setFontAndSize exist. What am I doing wrong? Thanks in advance!!

-- 
View this message in context: 
http://www.nabble.com/iText-and-coldfusion-tf2934941.html#a8205556
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to