Hello,
Im trying to use the itext pdfwriter.get instance but it comes back with nosuch method error. I was hoping someone could help me out.
I think my signature is wrong but I cant seem to eyeball it.
Message . . . . : Java exception received when calling Java method (C G D
F).
Cause . . . . . :
Java exception "java.lang.NoSuchMethodError:
com/itextpdf/text/pdf/PdfWriter.getInstance(Lcom/itextpdf/text/Document"
when calling method "getInstance" with signature
"(Lcom.itextpdf.text.Document;Ljava.io.FileOutputS treamV" in class
"com.itextpdf.text.pdf.PdfWriter".
My class assignment is below:
This is my method definition
And my useage
Thank You
Im trying to use the itext pdfwriter.get instance but it comes back with nosuch method error. I was hoping someone could help me out.
I think my signature is wrong but I cant seem to eyeball it.
Message . . . . : Java exception received when calling Java method (C G D
F).
Cause . . . . . :
Java exception "java.lang.NoSuchMethodError:
com/itextpdf/text/pdf/PdfWriter.getInstance(Lcom/itextpdf/text/Document"
when calling method "getInstance" with signature
"(Lcom.itextpdf.text.Document;Ljava.io.FileOutputS treamV" in class
"com.itextpdf.text.pdf.PdfWriter".
My class assignment is below:
Code:
D PdfWriter S O CLASS(*JAVA D :'com.itextpdf.text.pdf- D .PdfWriter')
Code:
D PdfWriterGetInstanse... D PR EXTPROC(*JAVA D :'com.itextpdf.text.pdf.PdfWriter' D :'getInstance') D pdfDocument like(iTextDocument) D fileOutPutStream... D like(FileOutputStream)
Code:
aString = new_String('/tmp/pdftest.pdf'); fos = new_FileOutputStream(aString); pdfwtr = new_PdfWriter; newdoc = new_ITextDocument; PdfWriterGetInstanse(pdfwtr: newdoc: fos); *getting nosuchmethod here
Comment