Re: FlexPrintJobScaleType doesn't work for me

2017-08-15 Thread Olaf Krueger
I did it as you suggested and create a PDF on the server side instead of using FlexPrintJob now. To achieve this I've introduced a new endpoint to my server side API that expects an image and some metadata. The services scale the image, create a PDF and returns an url to the created PDF. Maybe it

Re: Re: FlexPrintJobScaleType doesn't work for me

2017-08-13 Thread Olaf Krueger
Hi Doug, good to know that I'm not alone ;-) >send the doc to a pdf creator on the server That's a good idea. What do you mean with 'doc'? Do you send an image representation of the Flex component to the server? If so, how do you create this? Thanks, Olaf -- View this message in context: htt

Re: FlexPrintJobScaleType doesn't work for me

2017-08-13 Thread Olaf Krueger
>Did you try playing with the printAsBitmap options? Yes, with no success... but maybe I miss something. -- View this message in context: http://apache-flex-users.246.n4.nabble.com/FlexPrintJobScaleType-doesn-t-work-for-me-tp15482p15726.html Sent from the Apache Flex Users mailing list ar

Re: Re: FlexPrintJobScaleType doesn't work for me

2017-08-12 Thread vincent
Bonjour, En congés jusqu'au 4 septembre, je prendrais connaissance de votre message à mon retour. Cordialement, Vincent/AFTER24

Re: FlexPrintJobScaleType doesn't work for me

2017-08-12 Thread doug777
We have tried to use FlexPrintJob in the past with or without printAsBitmap set. But we found the final print usually has odd artefacts included just as you are seeing. Unless you have a fairly simple document and you know it will never be more than one page long, I would suggest these alternatives

Re: FlexPrintJobScaleType doesn't work for me

2017-08-11 Thread Alex Harui
Did you try playing with the printAsBitmap options? -Alex On 8/11/17, 1:51 PM, "Olaf Krueger" wrote: >Thanks Alex, I'll take a look at it soon! > >>Regarding alpha, I think if the thing you print has alpha < 0, you >>actually want to print the parent of that thing. > >Mhhh... there's a transpar

Re: Re: FlexPrintJobScaleType doesn't work for me

2017-08-11 Thread vincent
Bonjour, En congés jusqu'au 4 septembre, je prendrais connaissance de votre message à mon retour. Cordialement, Vincent/AFTER24

Re: FlexPrintJobScaleType doesn't work for me

2017-08-11 Thread Olaf Krueger
Thanks Alex, I'll take a look at it soon! >Regarding alpha, I think if the thing you print has alpha < 0, you >actually want to print the parent of that thing. Mhhh... there's a transparent rectangle on top which has an alpha <1. I just would like to print exactly the same that is on the screen

Re: Re: FlexPrintJobScaleType doesn't work for me

2017-08-11 Thread vincent
Bonjour, En congés jusqu'au 4 septembre, je prendrais connaissance de votre message à mon retour. Cordialement, Vincent/AFTER24

Re: FlexPrintJobScaleType doesn't work for me

2017-08-11 Thread Alex Harui
In looking at the source for FlexPrintJob, if the thing you are printing isn't the main app, then the currently size of the thing is used to compute how to scale to fill the page, but after that, validateNow() is called. If the thing you print computes to a different size that is too large for the

Re: FlexPrintJobScaleType doesn't work for me

2017-08-11 Thread Olaf Krueger
Hi Alex, sorry for the late response, I've overlooked your post. It seems to me that sometimes mails from the list doesn't reach my local inbox for whatever reason. >What are you printing? I am trying to print a s:Group that contains several Spark components including a Timebar component that come

Re: FlexPrintJobScaleType doesn't work for me

2017-07-22 Thread Alex Harui
What are you printing? Debug into addObject and watch the size computation. HTH, -Alex On 7/21/17, 7:59 AM, "Olaf Krueger" wrote: >Hi, >I've absolutely no experience with printing in Flex. >I'm trying to fit the screen content to an A4 page (landscape) by using >the >"scaleType" parameter, but