Flex:自动调整组内容的大小以适合打印页面
我有一个大组,其中包含两个标尺和距离标签,以及各种由图像和标签组成的较小组。现在我的任务是在带有页眉和页脚的页面上打印大组。大组延伸到页面边缘之外,并将页脚推离页面。如果我只打印组,我可以将
printJob.addObject(myView, FlexPrintJobScaleType.SHOW_ALL);
其全部放在一页上,但这也会缩放页眉和页脚,这是我不想要的 - 我将打印更多页面并想要页眉和页脚尺寸保持不变。
有没有办法在打印之前自动缩放组及其内容?
I have a large Group which contains two rulers and labels for distances, and a varied amount of smaller groups consisting of images and labels. Now my task is to print the large group on a page with a header and a footer. The large group extends outside the edge of the page and pushes the footer off the page. If I was printing just the Group, I could use
printJob.addObject(myView, FlexPrintJobScaleType.SHOW_ALL);
to fit it all on one page, but that would scale the header and footer as well, which I don't want - I'll be printing more pages and want the header and footer sizes to stay the same.
Is there a way to scale only the group and its contents automatically before printing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
arkward...在将组添加到打印作业之前,您可能必须先对其进行缩放,这意味着您必须对分辨率、DPI 等进行大量计算
要更改的属性是 http://help.adobe.com/en_US/FlashPlatform/ /reference/actionscript/3/mx/core/UIComponent.html#scaleY
但计算出缩放比例是一项困难得多的工作。
arkward... you'd probably have to scale the group before adding it to your print job, which means you are doing to have to do lots of calculations about resolutions, DPIs, etc
The property to change is http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/mx/core/UIComponent.html#scaleY
but working out what to scale by is a much harder job.