Mobile Printing?
Hello, I've been searching for solutions but have not found anything definitive on this. Is the only approach to this is to use ANE extensions? thx -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Mobile-Printing-tp7512.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Mobile Printing?
Yes printing is not supported in Flex mobile. Here is an ANE: https://github.com/denisdanielyan/AirPrintANE Best Regards, Sascha Am 06.08.2014 um 16:40 schrieb leejk leejk...@yahoo.com: Hello, I've been searching for solutions but have not found anything definitive on this. Is the only approach to this is to use ANE extensions? thx -- View this message in context: http://apache-flex-users.246.n4.nabble.com/Mobile-Printing-tp7512.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: Printing at a set DPI
I was working on a project some time ago and had problems with bad quality. I dont have it on my computer here but I remember that I scaled all objects up before printing to get a better resolution in the pdf or printout. What I did maybe a poor solution but it worked okay for me. Something like this: function addDisplayObjectToPdfWith300DPIResolution(displayObj:DisplayObject, pdfTarget:PDF):void{ var scaleFactor:Number=Math.round(300/72); var matrix:Matrix=new Matrix(scaleFactor,0,0,scaleFactor); var data:BitmapData = new BitmapData(displayObj.width*scaleFactor, displayObj.height*scaleFactor, false); data.draw(displayObj,matrix,null,null,null,false); var encodedImage: ByteArray =data.encode(data.rect, new PNGEncoderOptions()); pdfTarget.addImageStream(encodedImage,ColorSpace.DEVICE_RGB,pdfResize); } But I'm not too sure about it. 2014-02-03 Alex Harui aha...@adobe.com: On 2/2/14 2:07 PM, jude flexcapaci...@gmail.com wrote: So you're saying if I get a page size that is more than 72x8.5 by 72x11 then I could be printing at a higher DPI? Yes, that's my understanding, but I could certainly be wrong. And you're saying the page size that's returned may not exactly be 72x8.5 or 300x8.5? I'm guessing that would be because of the margins and options the user chosen in the print dialog. I'll have to check. That would be my guess as well. But that means by the time the user finally presses the print button on the OS print dialog the DPI is set in stone. That's my understanding as well, because I think you get to choose the DPI in the print dialog via some sort of combination of page setup and printer settings in the OS. That's when we get to add and scale the display objects we want to print. It sounds like then if I scale the display object after getting the page size information it won't change the DPI of the actual printout but will give me enough information to know what it is. The way I've been testing this is by choosing the Open as PDF option in the print dialog but I think I'll have to do some print outs. What are you seeing for page sizes when PDF printing? Also, it may matter if you are doing printAsBitmap or not. If you don't choose printAsBitmap, then I think the player will try to re-draw everything at the print driver's DPI. Do you know why certain things like Button would not look correctly in the printout? It looks like the button was vectorized (actual graphics data or commands were used) but not all of them. for example, the button has a thicker border than normal and it's label is text selectable but the button background is missing. in the PDF the button scales up as a vector would. does ui component bitmap capture highlight have anything to do with it? On a printout the label is text selectable? Or in a PDF? Maybe the player doesn't know how to print gradients in a way that PDF can understand. I think border thickness can be affected by destination DPI and how antialiasing and other colors gets computed. I thought we did see artifacts like that on screen when cacheAsBitmap is on. -Alex On Wednesday, January 29, 2014, Alex Harui aha...@adobe.com wrote: I'm definitely not the expert on printing, but in my limited experience, after the call to flexprintjob.start() you now know the page size. IIRC, the page size often has an unexpected size. Like if you think you've used the PrintDialog to set up a 300 dpi print on an 8.5x11 inch page, you don't get a page size of (300x8.5 by 300x11). But I could be wrong about that. But I don't think it is 72*8.5 by 72x11. Or is it? IIRC, the next step is to generate a display object to pass to flexprintjob. If you generate a display object that is larger than the page size, it will get clipped or print on multiple pages. If you scale the children being put in this display object, then it should print with the scaled child. What I don't know is if that scaling will do the right thing for a bitmap. -Alex From: jude flexcapaci...@gmail.com javascript:;mailto: flexcapaci...@gmail.com javascript:; Reply-To: users@flex.apache.org javascript:;mailto: users@flex.apache.org javascript:; users@flex.apache.orgjavascript:; mailto:users@flex.apache.org javascript:; Date: Wednesday, January 29, 2014 12:58 PM To: users@flex.apache.org javascript:;mailto:users@flex.apache.orgjavascript:; users@flex.apache.org javascript:;mailto:users@flex.apache.orgjavascript:; Subject: Re: Printing at a set DPI It does but I'm not sure how that would help. Also, it sends it after you send the job to the printer. The whole thing is somewhat confusing. In Photoshop you can specify the width, height and DPI of a document before you even start. Then later when you are ready to print the print dialog shows the width and height and DPI. If you change the scale or width or height in the print
Re: Printing at a set DPI
So you're saying if I get a page size that is more than 72x8.5 by 72x11 then I could be printing at a higher DPI? And you're saying the page size that's returned may not exactly be 72x8.5 or 300x8.5? I'm guessing that would be because of the margins and options the user chosen in the print dialog. I'll have to check. But that means by the time the user finally presses the print button on the OS print dialog the DPI is set in stone. That's when we get to add and scale the display objects we want to print. It sounds like then if I scale the display object after getting the page size information it won't change the DPI of the actual printout but will give me enough information to know what it is. The way I've been testing this is by choosing the Open as PDF option in the print dialog but I think I'll have to do some print outs. Do you know why certain things like Button would not look correctly in the printout? It looks like the button was vectorized (actual graphics data or commands were used) but not all of them. for example, the button has a thicker border than normal and it's label is text selectable but the button background is missing. in the PDF the button scales up as a vector would. does ui component bitmap capture highlight have anything to do with it? On Wednesday, January 29, 2014, Alex Harui aha...@adobe.com wrote: I'm definitely not the expert on printing, but in my limited experience, after the call to flexprintjob.start() you now know the page size. IIRC, the page size often has an unexpected size. Like if you think you've used the PrintDialog to set up a 300 dpi print on an 8.5x11 inch page, you don't get a page size of (300x8.5 by 300x11). But I could be wrong about that. But I don't think it is 72*8.5 by 72x11. Or is it? IIRC, the next step is to generate a display object to pass to flexprintjob. If you generate a display object that is larger than the page size, it will get clipped or print on multiple pages. If you scale the children being put in this display object, then it should print with the scaled child. What I don't know is if that scaling will do the right thing for a bitmap. -Alex From: jude flexcapaci...@gmail.com javascript:;mailto: flexcapaci...@gmail.com javascript:; Reply-To: users@flex.apache.org javascript:;mailto: users@flex.apache.org javascript:; users@flex.apache.orgjavascript:; mailto:users@flex.apache.org javascript:; Date: Wednesday, January 29, 2014 12:58 PM To: users@flex.apache.org javascript:;mailto:users@flex.apache.orgjavascript:; users@flex.apache.org javascript:;mailto:users@flex.apache.orgjavascript:; Subject: Re: Printing at a set DPI It does but I'm not sure how that would help. Also, it sends it after you send the job to the printer. The whole thing is somewhat confusing. In Photoshop you can specify the width, height and DPI of a document before you even start. Then later when you are ready to print the print dialog shows the width and height and DPI. If you change the scale or width or height in the print dialog the DPI also changes. For example, it scaled a large image to fit the page and it went from 72DPI to 176DPI. Then in the OS print dialog, nestled 3 layers deep in the menus, there's an option to change the print quality (DPI). There's fast draft, fast normal, normal, automatic, best and maximum DPI. If you dig deeper you can check the printer settings and it will show a DPI value for the preset. [Inline image 3] Here's the code I'm using: var printableObject:IUIComponent; var flexPrintJob:FlexPrintJob = new FlexPrintJob(); var printJobStarted:Boolean = flexPrintJob.start(); // after call to start you can get the pageWidth and pageHeight // log.infohttp://log.info(Print width and height: + flexPrintJob.pageWidth + x + flexPrintJob.pageHeight); flexPrintJob.addObject(printableObject, FlexPrintJobScaleType.MATCH_WIDTH); flexPrintJob.send(); What I want to know is if somewhere along the line I can say I'd prefer to print this at 300 dpi vs 72dpi (screen)? If I supply it with an object that is twice as large as the page size does that double the DPI? Sorry for the plethora of questions. On Tue, Jan 28, 2014 at 4:59 PM, Alex Harui aha...@adobe.comjavascript:; mailto:aha...@adobe.com javascript:; wrote: I thought PrintJob returned information about page width/height. And I thought that was controlled by the print settings in the print dialog. -Alex On 1/28/14 10:42 AM, jude flexcapaci...@gmail.com javascript:; mailto:flexcapaci...@gmail.com javascript:; wrote: Is there a way to print something at a certain DPI with the PrintJob or FlexPrintJob classes? From what I've read so far it will print at the resolution of the screen. Also, when I print in vector (not printAsBitmap) certain display objects lose their backgrounds. For example, if there is a Spark Button, the gradient doesn't show up.
Re: Printing at a set DPI
On 2/2/14 2:07 PM, jude flexcapaci...@gmail.com wrote: So you're saying if I get a page size that is more than 72x8.5 by 72x11 then I could be printing at a higher DPI? Yes, that's my understanding, but I could certainly be wrong. And you're saying the page size that's returned may not exactly be 72x8.5 or 300x8.5? I'm guessing that would be because of the margins and options the user chosen in the print dialog. I'll have to check. That would be my guess as well. But that means by the time the user finally presses the print button on the OS print dialog the DPI is set in stone. That's my understanding as well, because I think you get to choose the DPI in the print dialog via some sort of combination of page setup and printer settings in the OS. That's when we get to add and scale the display objects we want to print. It sounds like then if I scale the display object after getting the page size information it won't change the DPI of the actual printout but will give me enough information to know what it is. The way I've been testing this is by choosing the Open as PDF option in the print dialog but I think I'll have to do some print outs. What are you seeing for page sizes when PDF printing? Also, it may matter if you are doing printAsBitmap or not. If you don't choose printAsBitmap, then I think the player will try to re-draw everything at the print driver's DPI. Do you know why certain things like Button would not look correctly in the printout? It looks like the button was vectorized (actual graphics data or commands were used) but not all of them. for example, the button has a thicker border than normal and it's label is text selectable but the button background is missing. in the PDF the button scales up as a vector would. does ui component bitmap capture highlight have anything to do with it? On a printout the label is text selectable? Or in a PDF? Maybe the player doesn't know how to print gradients in a way that PDF can understand. I think border thickness can be affected by destination DPI and how antialiasing and other colors gets computed. I thought we did see artifacts like that on screen when cacheAsBitmap is on. -Alex On Wednesday, January 29, 2014, Alex Harui aha...@adobe.com wrote: I'm definitely not the expert on printing, but in my limited experience, after the call to flexprintjob.start() you now know the page size. IIRC, the page size often has an unexpected size. Like if you think you've used the PrintDialog to set up a 300 dpi print on an 8.5x11 inch page, you don't get a page size of (300x8.5 by 300x11). But I could be wrong about that. But I don't think it is 72*8.5 by 72x11. Or is it? IIRC, the next step is to generate a display object to pass to flexprintjob. If you generate a display object that is larger than the page size, it will get clipped or print on multiple pages. If you scale the children being put in this display object, then it should print with the scaled child. What I don't know is if that scaling will do the right thing for a bitmap. -Alex From: jude flexcapaci...@gmail.com javascript:;mailto: flexcapaci...@gmail.com javascript:; Reply-To: users@flex.apache.org javascript:;mailto: users@flex.apache.org javascript:; users@flex.apache.orgjavascript:; mailto:users@flex.apache.org javascript:; Date: Wednesday, January 29, 2014 12:58 PM To: users@flex.apache.org javascript:;mailto:users@flex.apache.orgjavascript:; users@flex.apache.org javascript:;mailto:users@flex.apache.orgjavascript:; Subject: Re: Printing at a set DPI It does but I'm not sure how that would help. Also, it sends it after you send the job to the printer. The whole thing is somewhat confusing. In Photoshop you can specify the width, height and DPI of a document before you even start. Then later when you are ready to print the print dialog shows the width and height and DPI. If you change the scale or width or height in the print dialog the DPI also changes. For example, it scaled a large image to fit the page and it went from 72DPI to 176DPI. Then in the OS print dialog, nestled 3 layers deep in the menus, there's an option to change the print quality (DPI). There's fast draft, fast normal, normal, automatic, best and maximum DPI. If you dig deeper you can check the printer settings and it will show a DPI value for the preset. [Inline image 3] Here's the code I'm using: var printableObject:IUIComponent; var flexPrintJob:FlexPrintJob = new FlexPrintJob(); var printJobStarted:Boolean = flexPrintJob.start(); // after call to start you can get the pageWidth and pageHeight // log.infohttp://log.info(Print width and height: + flexPrintJob.pageWidth + x + flexPrintJob.pageHeight); flexPrintJob.addObject(printableObject, FlexPrintJobScaleType.MATCH_WIDTH); flexPrintJob.send(); What I want to know is if somewhere along the line I can say I'd prefer to print this at 300 dpi vs 72dpi (screen)? If I supply it with an object
Re: Printing at a set DPI
It does but I'm not sure how that would help. Also, it sends it after you send the job to the printer. The whole thing is somewhat confusing. In Photoshop you can specify the width, height and DPI of a document *before*you even start. Then later when you are ready to print the print dialog shows the width and height and DPI. If you change the scale or width or height in the print dialog the DPI also changes. For example, it scaled a large image to fit the page and it went from 72DPI to 176DPI. Then in the OS print dialog, nestled 3 layers deep in the menus, there's an option to change the print quality (DPI). There's fast draft, fast normal, normal, automatic, best and maximum DPI. If you dig deeper you can check the printer settings and it will show a DPI value for the preset. [image: Inline image 3] Here's the code I'm using: var printableObject:IUIComponent; var flexPrintJob:FlexPrintJob = new FlexPrintJob(); var printJobStarted:Boolean = flexPrintJob.start(); // after call to start you can get the pageWidth and pageHeight // log.info(Print width and height: + flexPrintJob.pageWidth + x + flexPrintJob.pageHeight); flexPrintJob.addObject(printableObject, FlexPrintJobScaleType.MATCH_WIDTH); flexPrintJob.send(); What I want to know is if somewhere along the line I can say I'd prefer to print this at 300 dpi vs 72dpi (screen)? If I supply it with an object that is twice as large as the page size does that double the DPI? Sorry for the plethora of questions. On Tue, Jan 28, 2014 at 4:59 PM, Alex Harui aha...@adobe.com wrote: I thought PrintJob returned information about page width/height. And I thought that was controlled by the print settings in the print dialog. -Alex On 1/28/14 10:42 AM, jude flexcapaci...@gmail.com wrote: Is there a way to print something at a certain DPI with the PrintJob or FlexPrintJob classes? From what I've read so far it will print at the resolution of the screen. Also, when I print in vector (not printAsBitmap) certain display objects lose their backgrounds. For example, if there is a Spark Button, the gradient doesn't show up.
Re: Printing at a set DPI
I'm definitely not the expert on printing, but in my limited experience, after the call to flexprintjob.start() you now know the page size. IIRC, the page size often has an unexpected size. Like if you think you've used the PrintDialog to set up a 300 dpi print on an 8.5x11 inch page, you don't get a page size of (300x8.5 by 300x11). But I could be wrong about that. But I don't think it is 72*8.5 by 72x11. Or is it? IIRC, the next step is to generate a display object to pass to flexprintjob. If you generate a display object that is larger than the page size, it will get clipped or print on multiple pages. If you scale the children being put in this display object, then it should print with the scaled child. What I don't know is if that scaling will do the right thing for a bitmap. -Alex From: jude flexcapaci...@gmail.commailto:flexcapaci...@gmail.com Reply-To: users@flex.apache.orgmailto:users@flex.apache.org users@flex.apache.orgmailto:users@flex.apache.org Date: Wednesday, January 29, 2014 12:58 PM To: users@flex.apache.orgmailto:users@flex.apache.org users@flex.apache.orgmailto:users@flex.apache.org Subject: Re: Printing at a set DPI It does but I'm not sure how that would help. Also, it sends it after you send the job to the printer. The whole thing is somewhat confusing. In Photoshop you can specify the width, height and DPI of a document before you even start. Then later when you are ready to print the print dialog shows the width and height and DPI. If you change the scale or width or height in the print dialog the DPI also changes. For example, it scaled a large image to fit the page and it went from 72DPI to 176DPI. Then in the OS print dialog, nestled 3 layers deep in the menus, there's an option to change the print quality (DPI). There's fast draft, fast normal, normal, automatic, best and maximum DPI. If you dig deeper you can check the printer settings and it will show a DPI value for the preset. [Inline image 3] Here's the code I'm using: var printableObject:IUIComponent; var flexPrintJob:FlexPrintJob = new FlexPrintJob(); var printJobStarted:Boolean = flexPrintJob.start(); // after call to start you can get the pageWidth and pageHeight // log.infohttp://log.info(Print width and height: + flexPrintJob.pageWidth + x + flexPrintJob.pageHeight); flexPrintJob.addObject(printableObject, FlexPrintJobScaleType.MATCH_WIDTH); flexPrintJob.send(); What I want to know is if somewhere along the line I can say I'd prefer to print this at 300 dpi vs 72dpi (screen)? If I supply it with an object that is twice as large as the page size does that double the DPI? Sorry for the plethora of questions. On Tue, Jan 28, 2014 at 4:59 PM, Alex Harui aha...@adobe.commailto:aha...@adobe.com wrote: I thought PrintJob returned information about page width/height. And I thought that was controlled by the print settings in the print dialog. -Alex On 1/28/14 10:42 AM, jude flexcapaci...@gmail.commailto:flexcapaci...@gmail.com wrote: Is there a way to print something at a certain DPI with the PrintJob or FlexPrintJob classes? From what I've read so far it will print at the resolution of the screen. Also, when I print in vector (not printAsBitmap) certain display objects lose their backgrounds. For example, if there is a Spark Button, the gradient doesn't show up.
Printing at a set DPI
Is there a way to print something at a certain DPI with the PrintJob or FlexPrintJob classes? From what I've read so far it will print at the resolution of the screen. Also, when I print in vector (not printAsBitmap) certain display objects lose their backgrounds. For example, if there is a Spark Button, the gradient doesn't show up.
Re: Printing at a set DPI
I thought PrintJob returned information about page width/height. And I thought that was controlled by the print settings in the print dialog. -Alex On 1/28/14 10:42 AM, jude flexcapaci...@gmail.com wrote: Is there a way to print something at a certain DPI with the PrintJob or FlexPrintJob classes? From what I've read so far it will print at the resolution of the screen. Also, when I print in vector (not printAsBitmap) certain display objects lose their backgrounds. For example, if there is a Spark Button, the gradient doesn't show up.
Re: printing
Yes, that's why I used the quotes :) As you said, the print media query has been arround for a while, but finally in CSS3 some bright minds though that you would surely need to define a page and margins (and headers, footers, and so on) for real world printing :) Have a look at http://www.w3.org/TR/css3-page/. I've tested with more or less good results in IE8+, Chrome and Safari: the basics are covered in all of them, advanced features vary of course, as always ;) And for the job size, I'm affraid you'll just have to try, but if you''re talking about a lot of numbers, I believe flex will just send the font to the printer and then all the plain data, so there shouldn't be a problem with the printing size. Again, just try, a quick and dirty implementation in native flex wouldn't take you more than 10 lines of code :) Cheers ;) On Sat, Nov 30, 2013 at 6:50 AM, Frank Dahmen fr...@dahmenia.de wrote: thanks, you are right i was wondering if flex-printing can handle large print outs (i will have to print not too small dynamic data tables) generating a css-html file with php sounds good too (using html templates) what do you mean with new css3 print media? @media print was in css2(css1?) too? has css3 more stuff for printing? i will google. Am 29.11.2013 21:54, schrieb Javier Guerrero García: If you just need to print, and leaving PDF generation on the user side just like most software do, why not using Flex native printing capabilities? I've not used them in a while, but in 2009 they were good enough for proffesional formatting a dinamic 20 page document, and quite simple to use. Just invoke the prepareForPrinting methods, add your objects, set your bounding box scaling method, and you're done: the user is then presented the printing dialog box, selects the preferred printer (or PDF document writer if that's the case), and prints just like any other software. There're plenty of samples online, and I can tell you that it just works as expected, with really good results. I think this approach is much simpler than: 1. Deciding a framework for PDF generation, and paying for it if it's not free 2. Getting to know that framework 3. Generating the PDF 4. Downloading the generated PDF on the user side 5. Opening the generated PDF 6. And then finally print :) Another possible approach: have you had a look at the new CSS3 print media for HTML? They're quite well supported in all current browsers, with really good results. You could easily generate just simple HTML code for your docs, apply a CSS style sheet with print media definitions, and again let the user decide if he/she wants to paper print it or generate a PDF. Just my two cents ;) On Fri, Nov 29, 2013 at 2:27 PM, Frank Dahmen fr...@dahmenia.de wrote: Hi, what is the state of the art for printing (or pdf generating) in a Flex Application (web)? Thanks
printing
Hi, what is the state of the art for printing (or pdf generating) in a Flex Application (web)? Thanks
Re: printing
Hi, we use Alive PDF to create PDF in our Flex Mobile Web apps. It's really powerful and you can check out an example of the high quality documents you can create here: http://alivepdf.bytearray.org, and obviously you can download the library and start creating Just one more important think, it's free ;) Bye Angelo 2013/11/29 Frank Dahmen fr...@dahmenia.de Hi, what is the state of the art for printing (or pdf generating) in a Flex Application (web)? Thanks
Re: printing
Thanks, i will check it Am 29.11.2013 14:34, schrieb Angelo Lazzari: Hi, we use Alive PDF to create PDF in our Flex Mobile Web apps. It's really powerful and you can check out an example of the high quality documents you can create here: http://alivepdf.bytearray.org, and obviously you can download the library and start creating Just one more important think, it's free ;) Bye Angelo 2013/11/29 Frank Dahmen fr...@dahmenia.de Hi, what is the state of the art for printing (or pdf generating) in a Flex Application (web)? Thanks
Re: printing
Hi, i use Alive PDF and it’s work fine, but i can’t open pdf file to print on iOS terminal. if you have an idea ? Steph. Le 29 nov. 2013 à 14:34, Angelo Lazzari angelo.lazz...@redtulp.com a écrit : Hi, we use Alive PDF to create PDF in our Flex Mobile Web apps. It's really powerful and you can check out an example of the high quality documents you can create here: http://alivepdf.bytearray.org, and obviously you can download the library and start creating Just one more important think, it's free ;) Bye Angelo 2013/11/29 Frank Dahmen fr...@dahmenia.de Hi, what is the state of the art for printing (or pdf generating) in a Flex Application (web)? Thanks
Re: printing
On 11/29/2013 8:27 PM, Frank Dahmen wrote: what is the state of the art for printing (or pdf generating) in a Flex Application (web)? for us, where all our flex apps have server backends, we use iText w/coldfusion or java.
Re: printing
I'm using Flex+Java Applet+Javascript to can print directly on the printer without the screen asking to print, and also be able to print on Matrix Printers. On 11/29/2013 5:27 AM, Frank Dahmen wrote: Hi, what is the state of the art for printing (or pdf generating) in a Flex Application (web)? Thanks --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Re: printing
If you just need to print, and leaving PDF generation on the user side just like most software do, why not using Flex native printing capabilities? I've not used them in a while, but in 2009 they were good enough for proffesional formatting a dinamic 20 page document, and quite simple to use. Just invoke the prepareForPrinting methods, add your objects, set your bounding box scaling method, and you're done: the user is then presented the printing dialog box, selects the preferred printer (or PDF document writer if that's the case), and prints just like any other software. There're plenty of samples online, and I can tell you that it just works as expected, with really good results. I think this approach is much simpler than: 1. Deciding a framework for PDF generation, and paying for it if it's not free 2. Getting to know that framework 3. Generating the PDF 4. Downloading the generated PDF on the user side 5. Opening the generated PDF 6. And then finally print :) Another possible approach: have you had a look at the new CSS3 print media for HTML? They're quite well supported in all current browsers, with really good results. You could easily generate just simple HTML code for your docs, apply a CSS style sheet with print media definitions, and again let the user decide if he/she wants to paper print it or generate a PDF. Just my two cents ;) On Fri, Nov 29, 2013 at 2:27 PM, Frank Dahmen fr...@dahmenia.de wrote: Hi, what is the state of the art for printing (or pdf generating) in a Flex Application (web)? Thanks
Re: printing
thanks, you are right i was wondering if flex-printing can handle large print outs (i will have to print not too small dynamic data tables) generating a css-html file with php sounds good too (using html templates) what do you mean with new css3 print media? @media print was in css2(css1?) too? has css3 more stuff for printing? i will google. Am 29.11.2013 21:54, schrieb Javier Guerrero García: If you just need to print, and leaving PDF generation on the user side just like most software do, why not using Flex native printing capabilities? I've not used them in a while, but in 2009 they were good enough for proffesional formatting a dinamic 20 page document, and quite simple to use. Just invoke the prepareForPrinting methods, add your objects, set your bounding box scaling method, and you're done: the user is then presented the printing dialog box, selects the preferred printer (or PDF document writer if that's the case), and prints just like any other software. There're plenty of samples online, and I can tell you that it just works as expected, with really good results. I think this approach is much simpler than: 1. Deciding a framework for PDF generation, and paying for it if it's not free 2. Getting to know that framework 3. Generating the PDF 4. Downloading the generated PDF on the user side 5. Opening the generated PDF 6. And then finally print :) Another possible approach: have you had a look at the new CSS3 print media for HTML? They're quite well supported in all current browsers, with really good results. You could easily generate just simple HTML code for your docs, apply a CSS style sheet with print media definitions, and again let the user decide if he/she wants to paper print it or generate a PDF. Just my two cents ;) On Fri, Nov 29, 2013 at 2:27 PM, Frank Dahmen fr...@dahmenia.de wrote: Hi, what is the state of the art for printing (or pdf generating) in a Flex Application (web)? Thanks