Anyone used WebPDFReports 1.0

Gino Pacitti <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
I have  a little problem with using this Framework and would really  
appreciate a little help.

Im trying to create a PDF doc based on the contents of a component  
but run into a error

I have this code:

            PDFPage pdfPage = (PDFPage)pageWithName("PDFPage");
		HTML2PDFConvertor pdfConvertor = new HTML2PDFConvertor();
		pdfConvertor.createDocument("A4",  
HTML2PDFConvertor.PortraitOrientation);
		pdfConvertor.setTopMargin(5);	pdfConvertor.setLeftMargin(5);
		pdfConvertor.setPrintsVerticallyCentered(false);
		pdfPage.setConvertor(pdfConvertor);
         WOComponent demoPage = pageWithName("Demo");
         pdfPage.appendComponent(demoPage);


      WOResponse response = pdfPage.generateResponse();
     NSData htmlAsData = response.content();

         try{
     FileOutputStream fileToSaveAs = new FileOutputStream((String) 
System.getProperties().getProperty("pathToServer")+"0000004.pdf");
     htmlAsData.writeToStream(fileToSaveAs);



               }catch(FileNotFoundException e){

         e.printStackTrace();
         }catch(IOException io){
         io.printStackTrace();
         }


And I get this error with the debugger launching -

java[1100] *** Uncaught exception: <NSInvalidArgumentException> *** - 
[NSPlaceholderString initWithString:]: nil argument

Anyone point me in the right direction

GIno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.