ghostscript

Compress PDF after manipulation

笑着哭i 提交于 2021-01-28 18:22:40
问题 I have the following problem: I am receiving various scanned PDF files from a Kyocera Scanner Device. I have to automatically manipulate these PDF Files in order to: Delete the colors from textmarkers Convert the PDF to grayscale Put it in our DMS I am using a Bash-Script to do the job. For deleting the textmarker colors and converting to grayscale I use Imagemagick: convert -density 150 INPUT.pdf \ -channel rgba \ -alpha set \ -fuzz 15% \ -fill white \ -opaque 'rgb(255,200,195)' \ -opaque

acrobat reduced size pdf with gs/im/other?

我只是一个虾纸丫 提交于 2021-01-28 13:40:10
问题 In Acrobat 11 Pro, I can do File > Save As Other > Reduced Size PDF (setting as Acrobat 10 viewer or later), which cut a PDF to about 40% and looks exactly the same. I am wondering how I can achieve the same result with an open source tool like ghost script, image magick, or some adobe tools on a linux server via CL or PHP. 回答1: gswin64c -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf This works pretty well to reduce

Ghostscript PDF file compression using PHP's exec (Laravel on Docker)

风流意气都作罢 提交于 2021-01-28 12:02:08
问题 What needs to be done: User has to be able to upload a PDF, then the file is uploaded to an Amazon S3 bucket, the file should be compressed then. Current environment: Laravel application (mounted on Docker) ( php:7.4-fpm-alpine3.11 , GPL Ghostscript 9.50 , Laravel Framework 5.8.37 ) Amazon S3 bucket to save documents in Script is in a shell file which is made executable and added to /usr/local/bin as shrink Shell is not explicitly added in Docker container, should it be? Current flow: User

Ghostscript with AES-256 password protection for PDF 2.0 documents

大城市里の小女人 提交于 2021-01-28 11:52:24
问题 A password protected pdf file can be generated with ghostscript: gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=protect.pdf -sOwnerPassword=pwd1 -sUserPassword=pwd2 -dCompatibilityLevel=2.0 test.pdf The output file has the newest pdf version 2.0 which has unicode support for password protection. But according to pdfinfo the obsolete RC4 algorithm was used: pdfinfo protect.pdf -upw pwd2 CreationDate: Sat Apr 21 09:10:14 2018 CEST ModDate: Sat Apr 21 09:10:14 2018 CEST Tagged: no

Call Ghostscript in Windows by its invocation name?

筅森魡賤 提交于 2021-01-18 05:39:30
问题 What should I do to be able to call Ghostscript in Windows by its invocation name? I added Ghostscript bin folder to Windows PATH and Path variables but it doesn't work, neither does 'gswin32c.exe' nor 'gswin32c'. Logging out and then logging back in also didn't help. How do I solve this issue? Maybe I'm using the wrong invocation name? 回答1: There are several possibilities. To list the two most frequent ones: c:\full\path\to\gswin32c.exe should always work. For 64bit systems, use c:\full\path

Call Ghostscript in Windows by its invocation name?

家住魔仙堡 提交于 2021-01-18 05:38:25
问题 What should I do to be able to call Ghostscript in Windows by its invocation name? I added Ghostscript bin folder to Windows PATH and Path variables but it doesn't work, neither does 'gswin32c.exe' nor 'gswin32c'. Logging out and then logging back in also didn't help. How do I solve this issue? Maybe I'm using the wrong invocation name? 回答1: There are several possibilities. To list the two most frequent ones: c:\full\path\to\gswin32c.exe should always work. For 64bit systems, use c:\full\path

开源OA办公平台搭建教程:在O2OA中使用网络会议(一)

天涯浪子 提交于 2021-01-14 16:27:20
本文主要讲解Openmeetings-5.1.0安装的过程,O2OA服务器的相关配置教程将随后发布。 教程比较详细,可以按照步骤一步一步安装服务器的安装,如果您在安装过程中有遇到其他的问题,请及时联系我们,我们会进一步更新安装手册。 O2OA实际上是集成Openmeeting来实现网络会议的,Apache-Openmeeting是一个开源的网络会议系统,我们可以在Openmeeting官方网站上得到更多的信息。 介于Openmeetings的安装比较复杂,所以在这里,我们也把我们安装的过程共享出来,希望对大家有所帮助: Openmeetings官网: https://openmeetings.apache.org/ Openmeetings官网下载: https://openmeetings.apache.org/downl Openmeetings官方手册: https://openmeetings.apache.org/installation.html 从 Openmeeting官方发布的安装手册中可以看到,服务器的安装需要如下几个步骤: 本文后续就按照Openmeeting官方安装手册的要求逐步完成目前最新版本5.1.0的安装: Version 5.1.0 released! Release 5.1.0, provides following improvements:

ps2pdf: preserve page size

老子叫甜甜 提交于 2020-12-01 09:32:49
问题 I have myfile.ps with a vector image included. But when I run ps2pdf myfile.ps it seems that the output page size is A4: the vector image is too large and become cut away, so about one inch is lost. The following pseudo-header is printed in the output PDF file, in addition to the original vector image: PLOT SIZE:8.02x8.62Inches Magnification:7354.21X Is there any option or any way to convert the PS file to a PDF preserving the original paper size? 回答1: I doubt your quoted 2 lines are really