打开 PDF 并以编程方式打印到 PDF C# [英] Open PDF and print to PDF programmatically C#

查看:68
本文介绍了打开 PDF 并以编程方式打印到 PDF C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,在我打开 PDF 并使用CutePDF 将它们打印到另一个PDF 后,该应用程序能够打开和显示,但无法查看原件.

I am developing an application that is able to open and display PDFs after I open them and print them to another PDF using CutePDF, but the originals are not viewable.

我正在寻找一种以编程方式打开 PDF 文件并打印到另一个 PDF 文件的方法(不一定使用 CutePDF,只需打印到另一个 PDF 是所需的功能).

I am looking for a way to programmatically open a PDF file, and print to another PDF file (not necessarily using CutePDF, just printing to another PDF is the desired functionality).

这将被集成到 C# .NET 项目中.是否有任何建议如何执行此操作?

This will be integrated into a C# .NET project. Are there any suggestions how to go about doing this?

谢谢.

推荐答案

您可以使用 Office Interop 并生成 PDF,当您说打印到另一个 pdf"时,我想您的意思是只生成?或者您是说将它们假脱机到 pdf 打印驱动程序,该驱动程序基本上只会创建要保存的 PDF.

You could use Office Interop and generate the PDF, when you say "print to another pdf", I imagine you mean just generate? Or are you saying spool them to a pdf print driver that essentially will just create a PDF to be saved.

这篇关于打开 PDF 并以编程方式打印到 PDF C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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