Jeff-Lewis / alivepdf

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

Cannot get sample PDF generation to work - URGENT #114

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi

I am trying to get the sample PDF generation to work. I would like to use
AlivePDF for a work project, but wont start until I am sure the pdf
generation works.

I have tried using the sample to connect to the
alivepdf.bytearray.org/wp-content/demos/create.php which wont work. I have
also tried using the local create.php as well. Both returns "An error has
occured". I have also installed a tomcat and ran the servlet, but got an
exception with NegativeArraySizeException. Testing the
response.getContentLength() it returns -1, which indicates unknown length. 

It could be that there is no data being submitted, but I am not sure...

I have tried on both an iMac (10.5.6) and a Macbook Pro (10.5.6), Flash CS3
and CS4. I have configured the Flash preference -> action script -> action
script 3 -> source path to point to the source directory of the downloaded
AlivePDF 0.1.4.8 folder. 

Suggestions for getting this to work?

Kind Regards
Christian

Original issue reported on code.google.com by crpeder...@gmail.com on 1 Apr 2009 at 6:18

GoogleCodeExporter commented 8 years ago
Hi. If you're just trying to save locally and are using Flash 10, you might 
like to 
try:

var b:ByteArray = myPDF.save(Method.LOCAL);
var f:FileReference = new FileReference();
f.save(b,"default.pdf"); 

I had problems with create.php also, but I just need to save to the user's 
disk. 
The 'save' method is new and amazing. 

Cheers,
david

Original comment by david.ka...@gmail.com on 22 Jun 2009 at 3:25