I am doing a project in C++ and I want to open PDF files. How can I do it in turbo c++? Do I have to switch to another IDE?
我正在用C ++做一个项目,我想打开PDF文件。我怎么能在turbo c ++中做到这一点?我是否必须切换到另一个IDE?
Edited: I am doing an "E-book management" in c++. After managing the software i wanted to open pdf file through my program and do no access adobe reader or aome other. Sorry for incomplete question.
编辑:我正在用c ++进行“电子书管理”。管理软件后我想通过我的程序打开pdf文件,不要访问adobe reader或者其他的。抱歉,问题不完整。
3 个解决方案
#1
You can add PDF support to your application with TechSoft's PDF library. Which IDE you use shouldn't matter.
您可以使用TechSoft的PDF库为您的应用程序添加PDF支持。您使用哪个IDE无关紧要。
#2
If your intention is to open the PDF for viewing (like you probably do with your PDF viewer, e.g. Acrobat Reader), and not to open the file programmically, you cannot do it in Turbo C++ IDE.
如果您打算打开PDF以供查看(就像您可能使用PDF查看器,例如Acrobat Reader),而不是以程序方式打开文件,则无法在Turbo C ++ IDE中执行此操作。
Try opening the IDE in non-full-screen window, and you will be able to see the IDE and the PDF (in the Acrobat Reader) at the same time.
尝试在非全屏窗口中打开IDE,您将能够同时看到IDE和PDF(在Acrobat Reader中)。
#3
The Poppler library is a C++ library for rendering PDFs to any arbitrary format, whether to screen or image. It's very easy to extend, and I wrote a program for rendering PDFs to a custom image format in about 150 lines, in a little under 5 hours - and most of that work was in exporting the custom image format. A simple renderer came in under 50 lines and took me less than an hour to write.
Poppler库是一个C ++库,用于将PDF呈现为任意格式,无论是屏幕还是图像。它非常容易扩展,我编写了一个程序,用于在大约150行内将PDF转换为自定义图像格式,时间不到5小时 - 而且大部分工作都是导出自定义图像格式。一个简单的渲染器出现在50行以下,花了我不到一个小时的时间来写。
#1
You can add PDF support to your application with TechSoft's PDF library. Which IDE you use shouldn't matter.
您可以使用TechSoft的PDF库为您的应用程序添加PDF支持。您使用哪个IDE无关紧要。
#2
If your intention is to open the PDF for viewing (like you probably do with your PDF viewer, e.g. Acrobat Reader), and not to open the file programmically, you cannot do it in Turbo C++ IDE.
如果您打算打开PDF以供查看(就像您可能使用PDF查看器,例如Acrobat Reader),而不是以程序方式打开文件,则无法在Turbo C ++ IDE中执行此操作。
Try opening the IDE in non-full-screen window, and you will be able to see the IDE and the PDF (in the Acrobat Reader) at the same time.
尝试在非全屏窗口中打开IDE,您将能够同时看到IDE和PDF(在Acrobat Reader中)。
#3
The Poppler library is a C++ library for rendering PDFs to any arbitrary format, whether to screen or image. It's very easy to extend, and I wrote a program for rendering PDFs to a custom image format in about 150 lines, in a little under 5 hours - and most of that work was in exporting the custom image format. A simple renderer came in under 50 lines and took me less than an hour to write.
Poppler库是一个C ++库,用于将PDF呈现为任意格式,无论是屏幕还是图像。它非常容易扩展,我编写了一个程序,用于在大约150行内将PDF转换为自定义图像格式,时间不到5小时 - 而且大部分工作都是导出自定义图像格式。一个简单的渲染器出现在50行以下,花了我不到一个小时的时间来写。