Inches was just what i used in that example. Check out the setNumberFormat() command. You can use all the standards - "in","mm","px","pt","cm", etc. :-) This will apply to all drawing commands (even the Flash drawing API commands i override) until you change it again.
g. On 10/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
Actually, it seems if you could parse out the tags in the TextFormat of the text field, some HTML could be worked into text formatting in the PDF. >>>>inch over and 1 inch down from the top left"); Does it have to be inches or could pixel positions be designated? I suppose they could be converted first. Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Merrill, Jason >>Sent: Friday, October 20, 2006 1:09 PM >>To: Flashcoders mailing list >>Subject: RE: [Flashcoders] Exporting from flash to vector format >> >>Cool, thanks Greg, that looks like TextFields could be workable (other >>than the HTML formatting). I'll check out your demo for sure. >> >>Jason Merrill >>Bank of America >>Learning & Organization Effectiveness - Technology Solutions >> >> >> >> >> >> >>>>-----Original Message----- >>>>From: [EMAIL PROTECTED] [mailto:flashcoders- >>>>[EMAIL PROTECTED] On Behalf Of g.wygonik >>>>Sent: Friday, October 20, 2006 1:02 PM >>>>To: Flashcoders mailing list >>>>Subject: Re: [Flashcoders] Exporting from flash to vector format >>>> >>>>Hi Jason >>>> >>>>I didn't take any tone from your post - I try to read them as words >>and not >>>>infer things. If you had said "that sucks!", I would have taken it >>badly ;-) >>>> >>>>>From what I've gathered from users who have contacted me to tell me >>how they >>>>use it, there seems to be a lot of "fill out this form and we'll >>assemble a >>>>PDF of your choices"-type apps. I've seen some impressive full-color >>>>catalogs for big companies created that way. But in these cases, each >>page >>>>is programmatically typeset. >>>> >>>>Here's some code that would illustrate how text is added: >>>> >>>>mypage = myPDF.setDrawingPage(1); >>>>mypage.setNumberFormat("inches"); >>>>mypage.drawString(1,1,"myFont1",24,0xff0000,"This is red, 24point text >>at 1 >>>>inch over and 1 inch down from the top left"); >>>> >>>>You can kind-of setup templates by using a Flash movie that is the >>size of >>>>your document (in inches) x 72 (for dpi), and then lay out text areas >>and >>>>take their locations and use those in your drawString() methods being >>sure >>>>to set the drawing mode to "pixels" or "points". >>>> >>>>I hope that helps. I don't want to do too much support or up-front >>info on >>>>Flashcoders, but I figured I'd follow-up this one since others may >>want to >>>>know. I'd prefer to do support and other questions off-list. :-) >>>> >>>>g. >>>> >>>> >>>>On 10/20/06, Merrill, Jason <[EMAIL PROTECTED]> wrote: >>>>> >>>>> I realized after I sent that my tone didn't appear to good - it >>looks >>>>> like a great product Greg - just trying to figure out how I can use >>it >>>>> for a project. How do most people handle text with it? >>>>> >>>>> Jason Merrill >>>>> Bank of America >>>>> Learning & Organization Effectiveness - Technology Solutions >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>-----Original Message----- >>>>> >>From: [EMAIL PROTECTED] >>[mailto:flashcoders- >>>>> >>[EMAIL PROTECTED] On Behalf Of Merrill, Jason >>>>> >>Sent: Friday, October 20, 2006 8:41 AM >>>>> >>To: Flashcoders mailing list >>>>> >>Subject: RE: [Flashcoders] Exporting from flash to vector format >>>>> >> >>>>> >>So to get text into the PDF you would need to re-draw it somehow? >>>>> Hmmm, >>>>> >>might be a showstopper for me, but thanks anyway. >>>>> >> >>>>> >>Jason Merrill >>>>> >>Bank of America >>>>> >>Learning & Organization Effectiveness - Technology Solutions >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>> >> >>>>> >>>>-----Original Message----- >>>>> >>>>From: [EMAIL PROTECTED] >>[mailto:flashcoders- >>>>> >>>>[EMAIL PROTECTED] On Behalf Of g.wygonik >>>>> >>>>Sent: Thursday, October 19, 2006 9:11 PM >>>>> >>>>To: Flashcoders mailing list >>>>> >>>>Subject: Re: [Flashcoders] Exporting from flash to vector format >>>>> >>>> >>>>> >>>>Hey Jason (and all) >>>>> >>>> >>>>> >>>> >>>>> >>>>> Do you know how many PDF pages it can generate (is there a >>max)? >>>>> >>>> >>>>> >>>> >>>>> >>>>There is no programmatic limit to the number of pages. While I >>have >>>>> >>had >>>>> >>>>users create 20-40 page documents, I haven't had anyone try, >>say, >>>>> >>9,000 >>>>> >>>>pages. :-) >>>>> >>>> >>>>> >>>>Will it render out dynamic textfields in the positions they are >>in? >>>>> >>>> >>>>> >>>> >>>>> >>>>No. Not exactly. Basically all text is created in the document >>by >>>>> >>using a >>>>> >>>>drawString() method. So, you would need to re-draw things into >>the >>>>> >>PDF. Or, >>>>> >>>>you could use the component as your main display and only do it >>>>> once. >>>>> >>But >>>>> >>>>it's not "take this textfield and pop it into the PDF". >>>>> >>>> >>>>> >>>>What about HTML text? >>>>> >>>> >>>>> >>>> >>>>> >>>>Nope. >>>>> >>>> >>>>> >>>>Can you generate a hardcopy PDF Document or does it just sent >>the >>>>> PDF >>>>> >>>>> data to a browser window? >>>>> >>>> >>>>> >>>> >>>>> >>>>It generates a full PDF document into a variable in Flash. So >> _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
-- weblog: broadcast.artificialcolors.com blazePDF: www.blazepdf.com band: www.cutratebox.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

