将JPEG嵌入PDF文件中 [英] Embed a JPEG inside a PDF file

查看:151
本文介绍了将JPEG嵌入PDF文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Flash应用程序.在该项目中,我需要将.jpg图像保存到.pdf文件中.我该如何以编程方式执行此操作?

I''m developing a flash application. In that project, I need to save a .jpg image into .pdf file. How do I do this programmatically?

我正在用ActionScript编写此应用程序,但是我最了解C ++,因此,如果您发布的任何示例都使用C ++,则将更好地理解它们.然后,我可以自己将逻辑转换为ActionScript.

I''m doing this application in ActionScript, but I understand C++ best, so any examples you post would be best understood if they were in C++. I can then translate the logic to ActionScript myself.

如果您有任何想法,我将不胜感激.

I would appreciate any ideas you have.

推荐答案

我对您的问题进行了一些修改,使其更加清晰.如果您的意思有误,请告诉我.最好的选择是使用一个库,该库可以让您自己构造PDF. http://itextsharp.sourceforge.net/就是这样的一个库(它使用C#). http://www.lowagie.com/iText/是该库的Java版本.
I modified your question somewhat to be more clear. Let me know if I got your meaning wrong. Your best bet is to use a library that allows you to construct PDF''s yourself. http://itextsharp.sourceforge.net/ is one such library (it uses C#). http://www.lowagie.com/iText/ is the Java version of that library.


这篇关于将JPEG嵌入PDF文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆