ghostscript

Simple VB.Net Wrapper for Ghostscript Dll [closed]

人盡茶涼 提交于 2019-12-29 03:39:11
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I love Ghostscript. You can use it to convert pdf's to graphics files, split and/or merge pdf files, make thumbnails, and a whole bunch of other stuff. And, it's free, open-source software! There are scads of posts on web sites on how to use Ghostscript from the command line for all sorts of

How to get Ghostscript to use embedded fonts in PDF

做~自己de王妃 提交于 2019-12-28 13:36:10
问题 gs -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dBATCH \ -sDEVICE=pdfwrite -sOutputFile=output.pdf input.pdf I'm using (trying anyway) to use Ghostscript to reduce my PDF file size. The command above looks like it works, it reduces file size greatly, but then several of the fields are garbled. As for as I can track it down, It's doing font substitution. IE, The same text = same garbled text. The fonts are embedded in the PDF when it gets to me. Additionally, I have tried to add

PDF - Remove White Margins

百般思念 提交于 2019-12-28 02:50:08
问题 I would like to know a way to remove white margins from a PDF file. Just like Adobe Acrobat X Pro does. I understand it will not work with every PDF file. I would guess that the way to do it, is by getting the text margins, then cropping out of that margins. PyPdf is preferred. iText finds text margins based on this code: public void addMarginRectangle(String src, String dest) throws IOException, DocumentException { PdfReader reader = new PdfReader(src); PdfReaderContentParser parser = new

轻松搭建基于 Serverless 的文档图片在线转换服务

主宰稳场 提交于 2019-12-26 11:02:47
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 核心优势 异构服务:支持多种运行环境 用于媒体文件转换的库或者二进制往往和业务的运行环境不同,对计算资源的需求也有较大的差异。 函数计算支持多种运行环境,支持为独立的转换函数定制算力单位,根据请求量自动伸缩,让核心业务和支持业务做到较好的分离。 灵活触发:支持多种触发方式 函数计算既可以通过集成事件源服务(OSS、API 网关、日志服务和表格存储)产生事件来触发函数执行,也可以通过 HTTP 触发器使用 HTTP 请求触发函数执行,还支持 API/SDK 直接调用函数。 弹性伸缩: 轻松应对负载的波峰波谷 函数计算提供跨可用区的容灾能力,根据请求量自动进行毫秒级弹性扩容,快速调度计算资源,轻松应对业务洪峰。 预留实例功能彻底消除实例冷启动带来的延时毛刺,为在线应用迁移至函数计算扫清障碍! 工程效率:搭建速度快,运维代价小 使用函数计算,开发者无需管理服务器等基础设施,只需编写并上传代码,函数计算准备好计算资源,弹性可靠地运行任务,并提供完备的日志与监控报警服务,帮助服务快速上线且免除繁琐的运维操作。 最佳实践 快速开发一个分布式 Puppeteer 网页截图服务 示例搭建了一个具备弹性的 Puppeteer 网页截图服务,实现的功能为:客户端将想要截图的网页地址发送给函数,函数负责渲染网页内容,并截图返回。

Convert SVG to PDF with GhostScript/GhostPDL?

故事扮演 提交于 2019-12-25 06:01:45
问题 Question: It is possible to convert SVG to PDF using GhostPCL, like this: gsvg.exe -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=my.pdf t1.svg The difficulty is getting gsvg.exe... I managed to find the source from: http://svn.ghostscript.com/ghostscript/trunk/ and it built and compiled and it works fine. However, when I go to http://svn.ghostscript.com, then it states: SVN is decprecated, Ghostscript and associated projects are now hosted only in git repositories, see: http://git

Convert SVG to PDF with GhostScript/GhostPDL?

喜欢而已 提交于 2019-12-25 06:01:44
问题 Question: It is possible to convert SVG to PDF using GhostPCL, like this: gsvg.exe -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=my.pdf t1.svg The difficulty is getting gsvg.exe... I managed to find the source from: http://svn.ghostscript.com/ghostscript/trunk/ and it built and compiled and it works fine. However, when I go to http://svn.ghostscript.com, then it states: SVN is decprecated, Ghostscript and associated projects are now hosted only in git repositories, see: http://git

Print PDF using GhostScript in LANDSCAPE

寵の児 提交于 2019-12-25 04:33:41
问题 I am printing a PDF file as follows: using (GhostscriptProcessor processor = new GhostscriptProcessor()) { List<string> switches = new List<string>(); switches.Add("-empty"); switches.Add("-dPrinted"); switches.Add("-dBATCH"); switches.Add("-dNOPAUSE"); switches.Add("-dNOSAFER"); switches.Add("-dNumCopies=1"); switches.Add("-sDEVICE=mswinpr2"); switches.Add("-sOutputFile=%printer%" + printerName); switches.Add("-f"); switches.Add(inputFile); processor.StartProcessing(switches.ToArray(), null)

GhostScript issues with a CropBox

风流意气都作罢 提交于 2019-12-25 01:46:25
问题 I am trying to add a CropBox to a pdf with ghostscript. I use the following code: gs -sDEVICE=pdfwrite -o output.pdf -c "[/CropBox [100.00 100.00 200.00 200.00] /PAGES pdfmark" -f input.pdf The problem is that with some pdf's it will create a proper CropBox, but with others it fails to do anything. The pdf's that fail already have a existing TrimBox, and after my line of code the TrimBox has been removed. But it doesn't create a correct CropBox. I get no errors from GhostScript, it just doesn

Need help/answers on PDF color seperation

霸气de小男生 提交于 2019-12-24 23:42:03
问题 Using the following process: A PDF is been created by PDFCreator, when a user prints something to the virtual printer The PDF gets further processed with integrated VBScript handler and passed over to JAVA which does some processing with the PDF content In the middle of the process an external application is called with the PDF that adds black text and graphics to the PDF The PDFs are collected and once a week handed over to a print shop that uses a plate for each CMYK The problem is: the

how to add a separator after each word with ghostscript -sDEVICE=txtwrite

爱⌒轻易说出口 提交于 2019-12-24 18:38:14
问题 I have used ghostscript to successfully extract text from PDFs that have tables. This simple command works very well: gswin64c -sDEVICE=txtwrite -o test.txt "c:\reports\sample.pdf" However some words get joined together especially from tables, for example: 234801111111109-12-2014 16:17:04764030208117034 2883253100.00 Payment 234801111111109-12-2014 16:18:461088956908117033 2883253400.00 Payment 234801111111109-12-2014 16:19:48769948208117040 2883253750.00 Payment should actually be: