Hi Rodrigo,
I had the same problem.
Willem solution was good, but did not work completely for me.
I still use alivePDF, but not the bitmapdata
Try this:
pdf = new PDF(Orientation.PORTRAIT, Unit.MM,
Size.A4);
pdf.setDisplayMode(Display.FULL_PAGE,
Layout.SINGLE_PAGE);
// configuration propertiesdocument pdf
pdf.setTitle("Your title");
pdf.setSubject("creating PDF");
pdf.setCreator("your name");
var newPage:Page = new Page(Orientation.PORTRAIT,
Unit.MM, Size.A4);
pdf.addPage(newPage); // create a page
//style setting - can be change along the flow
pdf.textStyle(new RGBColor(0X00000000), 1); // text
color met alpha 1
var oCoreFont:IFont = new
CoreFont(FontFamily.ARIAL);
pdf.setFont(oCoreFont, 10);// fontsize
/*
* pdf.addMultiCell(width:Number, height:Number,
text:String, border:* = 0, align:String = J, filled:int = 0)
* Parameters
* width:Number - Cell width
* height:Number - Cell height
* text:String - Text to add into the cell
* border:* (default = 0) - Lets you specify if
a border should be drawn around the cell
* align:String (default = J) - Lets you center
or align the text into the cell, values can be L (left align), C (centered),
R (right align), J (justified) default value
* filled:int (default = 0) - Lets you specify
if the cell is colored (1) or transparent (0)
*/
var str:String;
str = "Put your text here.\nYour add as many lines
as you wish and within the paper size.\nWhich is 210 x 297 millimeters.";
pdf.setXY(20, 50);
pdf.addMultiCell(150, 5, str, 0, "L");
Best regards,
Cor van Dooren
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Rodrigo
Augusto Guerra
Sent: vrijdag 11 november 2011 21:23
To: Flash Coders List
Subject: [Flashcoders] improve generated pdf quality (using alivePDF)
hi all,
I'm using alivePDF to generate some pdf reports.
Basically I have a imported JPEG that is the backgorund and then some
static/dynamic arial text (font size 8).
what I've noticed is that the generated pdf is a little blury, and the text
are not as visible as they shoud be.
any hint to improve the generated pdf quality ?
Is the arial 8 a problem as it is very small?? which font is better for smal
size text?
thanks!
rodrigo
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders