使用 Flex 和 AlivePDF 创建带有图像的客户端 PDF 中的图像

发布于 2024-10-13 12:11:56 字数 150 浏览 8 评论 0原文

我正在使用 Flex 和 AlivePDF 为基于 Web 的应用程序创建带有图像的客户端 PDF。图像已在该 pdf 上生成,但它给大尺寸图像带来了问题,因为一半图像从该 pdf 中消失了。我正在将图像放入画布中。我如何控制我的图像,以便它们适合我拍摄的任何图像尺寸的 pdf 文件。

I am creating client side PDF with image using flex and AlivePDF for a web based application. Images have been generated on that pdf but it is creating problem for large size images as half of the image disappeared from that pdf.I am taking the image inside a canvas . How do i control my images so that they come fit on that pdf file for any image size that i take.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

笔落惊风雨 2024-10-20 12:11:56

我认为如果你使用 fit_to_page 选项应该可以。

printPDF.addImage(this , 0 , 0 , 0 , 0 , 'PNG' , 100 , 1 , ResizeMode.FIT_TO_PAGE);

I think if you use the fit_to_page option should work.

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