我正在使用Ghostscript库API(从C#包装)从我的应用程序打印PDF文档. 使用' -dFirstPage '和' -dLastPage '参数,我可以选择要打印的页面范围,但PDF页面的总数如何?
允许用户选择2到10之间的页面间隔并不是很好,当然,让我说,PDF文档只有4页.
考虑一下我通过gsapi_init_with_args API库调用使用Ghostscript库.
pdf api ghostscript
api ×1
ghostscript ×1
pdf ×1