Flex:自动调整组内容的大小以适合打印页面

发布于 2024-09-29 17:54:22 字数 281 浏览 1 评论 0原文

我有一个大组,其中包含两个标尺和距离标签,以及各种由图像和标签组成的较小组。现在我的任务是在带有页眉和页脚的页面上打印大组。大组延伸到页面边缘之外,并将页脚推离页面。如果我只打印组,我可以将

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温柔少女心 2024-10-06 17:54:22

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文