sivarajankumar / alivepdf

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

Flash components are not visible in PDF output? #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

When I place a standard Flash ComboBox (or any component) inside of a
DisplayObject, then send the DisplayObject out for PDF generation, the
ComboBox will not appear.

I am using version 0.1.4.1 on WinXP.

Thanks! (good work, btw)

Matt

Original issue reported on code.google.com by matt....@gmail.com on 14 May 2008 at 11:12

GoogleCodeExporter commented 8 years ago
Hi matt,

oh, very strange. I am going to check that :)

Thanks for tracking 

kind regards,

Thibault

Original comment by thibault.imbert on 16 May 2008 at 3:23

GoogleCodeExporter commented 8 years ago
Thibault Imbert... wow!!!! your work based in FPDF are great, you are 
Magnanimus.

Thank you so much...

I try to use this AlivePDF "Grid" using only Flash CS4 (not Flex) the AS3 code 
inside
the swf file "class path", ok, when i click "generate_btn" it only generates a 
PDF
file with a blank page "create.pdf (1k)"

your file "alivepdf_dynamic_grid.swf" it´s really great.

Question... you generate this in flex?, what about a .fla file "flash CS4 AS 3.0

or what i´m doing wrong?
i´m using dataGrid component of flash CS4, the .swf file with dataGrid it´s 
ok 
but "generate_btn" generates a blank page.

package {
// AlivePDF import
import org.alivepdf.pdf.PDF;
import org.alivepdf.layout.Orientation;
import org.alivepdf.layout.Size;
import org.alivepdf.layout.Unit;
import org.alivepdf.layout.Align;
import org.alivepdf.display.Display;
import org.alivepdf.saving.Method;
import org.alivepdf.fonts.FontFamily;
import org.alivepdf.fonts.Style;
import org.alivepdf.colors.RGBColor;
import org.alivepdf.data.Grid;
import org.alivepdf.drawing.Joint;
// END AlivePDF import

public class pdfFunction extends Sprite {
public var generate_btn:SimpleButton;

public function pdfFunction() {
// generate/create PDF
var myPDF:PDF=new PDF(Orientation.PORTRAIT, Unit.MM, Size.LETTER);      
var grid:Grid=new Grid(somedataGrid.dataProvider.toArray(), 200, 120, new 

Array(40,50,40,30,40,50,40,10), new Array
(Align.LEFT,Align.LEFT,Align.LEFT,Align.LEFT,Align.LEFT,Align.LEFT,Align.LEFT,Al
ign.LEFT),
new RGBColor(0xCCCCCC), new RGBColor(0xAAAAAA), new RGBColor(0), false, new
RGBColor(0x0), Joint.MITER);

myPDF.addPage();
//myPDF.textStyle(new RGBColor(0), 1);
myPDF.setFont (FontFamily.ARIAL, Style.NORMAL, 12);
myPDF.setDisplayMode(Display.REAL);
myPDF.addGrid(grid, 5, 5);

function generatePDF(e:MouseEvent) {
    myPDF.save(Method.REMOTE, "http://www.somesite.com/create.php", "generated.pdf");
        }
generate_btn.addEventListener( MouseEvent.CLICK, generatePDF );

// END generate/create PDF
  }
// datagrid columns...
}

Original comment by diping...@gmail.com on 20 Mar 2009 at 5:24

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi Thibault,

Is there any progress of supporting standard Flash component in AlivePDF?

Thanks.

Stone 

Original comment by shijiad...@gmail.com on 30 Oct 2009 at 1:57