如何使用Ghostscript DLL将PDF转换为PDF/A [英] How to Use Ghostscript DLL to convert PDF to PDF/A

查看:99
本文介绍了如何使用Ghostscript DLL将PDF转换为PDF/A的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用GhostScript DLL将PDF转换为PDF/A.我知道我必须调用名称为gsapi_init_with_args的gsdll32.dll的导出函数,但是如何传递正确的参数?顺便说一句,我正在使用C#.

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, i'm using C#.

推荐答案

pls,请尝试从命令行运行它以测试它是否在满足您的要求.

pls, try to run this from the command line to test if it's doing what you need.

gswin32.exe -dPDFA -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=PDFA.pdf 1.pdf

一个简单的C#包装器用于Ghostscript

这篇关于如何使用Ghostscript DLL将PDF转换为PDF/A的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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