sivarajankumar / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Error-#1009 #141

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,I am new to flex i am trying to generate a pdf.right now i am using 
Flex 3.0,Alive pdf,java structs backend,and no life cycle or Blaze ds.

here is my code:
var mypdf:PDF;
     mypdf=new PDF(Orientation.LANDSCAPE,Unit.MM,Size.LETTER);

    var newpage:Page= new Page
(Orientation.LANDSCAPE,Unit.MM,Size.LETTER);
    mypdf.addPage( newpage );
    mypdf.startTransform();
    mypdf.setTitle("gautam");
    mypdf.setAuthor("me");
    mypdf.setCreator("gautam");

mypdf.setLeftMargin(5);
mypdf.setRightMargin(5);
mypdf.setSubject("Subject String");

mypdf.setTopMargin(5);
mypdf.setXY(30,30);
    mypdf.addText("gautam",20,20);
 mypdf.writeText(10,"gautam");
 mypdf.save
(Method.REMOTE,"http://01hw183746:8089/DashBoardWeb/CovertPDFAction.do","Do
wnload.ATTACHMENT","myPDF.pdf");

if i am not using mypdf.writeText(10,"gautam"); a blank pdf is generating.
if i am using it null pointer exception is throwing

Original issue reported on code.google.com by gautam.1...@gmail.com on 3 Jul 2009 at 8:38

GoogleCodeExporter commented 8 years ago
Hi gautam,

startTransform() is deprecated and was removed.

Can you please try with the latest builds available on the SVN and let me know ?

Thanks!

Thibault

Original comment by thibault.imbert on 24 Jan 2010 at 2:21