spadged / alivepdf

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

unable to load EPS into PDF directly #264

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Having trouble loading the EPS into the PDF directly, as it seems like the 
alivePDF will only take EPS files when it's embedded into the SWF at compile 
time.

As an aside, the highest version of EPS alivepdf supports is apparently EPS 
version 8. Is this true as this would significantly limit what the 
compatibility with lots of EPS files?

Running latest alivepdf release of linux centOS 5.x

Greatly appreciate prompt help on the above.

With Regards,

Robert

Original issue reported on code.google.com by robert%g...@gtempaccount.com on 22 Jul 2010 at 3:35

GoogleCodeExporter commented 9 years ago
If you're using Flash IDE, you have to download Flex SDK, add the path to the 
libs: ...\flexsdk\frameworks\libs to the AS3.0 settings. And then to embed the 
files:

[Embed(source="myEPSSource.eps", mimeType="application/octet-stream")]
var myEPSSource:Class;
var myEPS:ByteArray = new myEPSSource();

var myPDF:PDF = new PDF(Orientation.LANDSCAPE,Unit.MM,Size.LETTER);
myPDF.setDisplayMode( Display.REAL );
myPDF.addPage();
myPDF.addEPSImage(myEPS as ByteArray);
myPDF.save(Method.REMOTE, "create.php", "generated.pdf");

Original comment by enstr...@gmail.com on 3 Dec 2010 at 1:08