Jeff-Lewis / alivepdf

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

When adding Grid to PDF, the PDF don't want to save anymore #115

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello Mr Imbert
I have a little problem with AlivePDF.
I create a new Flex project, then a new PDF, and when I'm adding a Grid to this 
PDF Flex don't want 
to generate the PDF.
I've tried with other components like circle, text, etc and it's working but 
not with Grid.
I may be doing something wrong but I can't see what and it's very annoying.
I attached a .zip containing my sample project.
If you could put an eye on it, i thank you.

Cordially

Original issue reported on code.google.com by jham...@gmail.com on 4 Apr 2009 at 9:41

Attachments:

GoogleCodeExporter commented 9 years ago
Same here..
Can't make it work either

Original comment by ric.rodr...@gmail.com on 7 Apr 2009 at 1:52

GoogleCodeExporter commented 9 years ago
Hi. Don't know if this has been resolved or not... I got your example to work 
by 
injecting these two lines of code before the call to 'addGrid'  

myPDF.addPage(new Page(Orientation.PORTRAIT, Unit.MM, Size.A4));
myPDF.setFont(FontFamily.TIMES, Style.NORMAL, 12);

I spent some time looking at the source of PDF. Seems like there's a null 
pointer 
related to the font somewhere if you dont set it... but I dont know :) 

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

GoogleCodeExporter commented 9 years ago
Oh and also: I saved the PDF using:

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

in case this somehow matters :P 

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

GoogleCodeExporter commented 9 years ago
thank you very much for your help
it is working now
i don't know how to thank you, you saved me a lot of time

Original comment by jham...@gmail.com on 15 Aug 2009 at 4:26