从PDF中删除图像(带透明度/ Alpha通道)

时间:2022-12-08 00:21:37

How to remove images with alpha channel (transparency) in a PDF file?

如何在PDF文件中删除alpha通道(透明度)的图像?

I need to remove all images with transparency from a PDF file because it needs to be optimized with pdf2ps and ps2pdf (to reduce filesize).. Postscript doesn't work properly when the PDF contains images with transparency and the PDF will be converted to one big image..

我需要从PDF文件中删除所有具有透明度的图像,因为它需要使用pdf2ps和ps2pdf进行优化(以减少文件大小)。当PDF包含具有透明度的图像并且PDF将转换为一个时,Postscript无法正常工作大图..

2 个解决方案

#1


1  

I have not managed to reproduce your problem.
For cons, I did the same treatment to compress my pdf except that I used pdftops instead of pdf2ps.
I hope it will help. Sorry for my english (translate.google)

我没有设法重现你的问题。对于缺点,我做了相同的处理以压缩我的pdf,除了我使用pdftops而不是pdf2ps。我希望它会有所帮助。抱歉我的英文(translate.google)

#2


0  

Clark,

It sounds like www.pstill.com will do everything you need and more in one tool. There is a Linux command line version available for a very reasonable price. I have used the tool on a few different PDF's for different reasons and it has always worked as advertised.

听起来像www.pstill.com将在一个工具中完成您需要的一切。有一个Linux命令行版本,价格非常合理。我出于不同的原因在几个不同的PDF上使用了该工具,并且它一直像宣传的那样工作。

From their website.

来自他们的网站。

Putting the 'Portable' back in PDF - PDF to PDF Transcoding

将“便携式”放回PDF - PDF到PDF转码

Your PDF cannot be printed on some printers or processed with some applications? PStill can sanitize, simplify, reprocess, flatten transparency and recompress PDF-Files, this process also known as 'transcoding' create a new PDF that has better compatibility, is often smaller in file size, can be optional encrypted/secured and contain only a uniform set of font types. Fonts can be normalized to plain PostScript Type 1 formats, can be subsetted, missing fonts included and bad fonts repaired/replaced. PStill can detect and remove duplicate elements in the PDF. Text can be converted to outlines which makes it perfect for creating 'fontless' PDF. Transcoding can be used to repair bad PDF or simplify the PDF structure so more limited output devices can process it.

您的PDF无法在某些打印机上打印或使用某些应用程序处理? PStill可以清理,简化,重新处理,平整透明度并重新压缩PDF文件,这个过程也称为“转码”,创建一个具有更好兼容性的新PDF,文件大小通常较小,可以是可选加密/安全的,只包含一个统一的字体集类型。字体可以标准化为普通的PostScript Type 1格式,可以是子集,包含丢失的字体以及修复/替换坏字体。 PStill可以检测并删除PDF中的重复元素。文本可以转换为轮廓,这使其非常适合创建“无字体”PDF。转码可用于修复错误的PDF或简化PDF结构,因此更有限的输出设备可以处理它。

Andrew.

#1


1  

I have not managed to reproduce your problem.
For cons, I did the same treatment to compress my pdf except that I used pdftops instead of pdf2ps.
I hope it will help. Sorry for my english (translate.google)

我没有设法重现你的问题。对于缺点,我做了相同的处理以压缩我的pdf,除了我使用pdftops而不是pdf2ps。我希望它会有所帮助。抱歉我的英文(translate.google)

#2


0  

Clark,

It sounds like www.pstill.com will do everything you need and more in one tool. There is a Linux command line version available for a very reasonable price. I have used the tool on a few different PDF's for different reasons and it has always worked as advertised.

听起来像www.pstill.com将在一个工具中完成您需要的一切。有一个Linux命令行版本,价格非常合理。我出于不同的原因在几个不同的PDF上使用了该工具,并且它一直像宣传的那样工作。

From their website.

来自他们的网站。

Putting the 'Portable' back in PDF - PDF to PDF Transcoding

将“便携式”放回PDF - PDF到PDF转码

Your PDF cannot be printed on some printers or processed with some applications? PStill can sanitize, simplify, reprocess, flatten transparency and recompress PDF-Files, this process also known as 'transcoding' create a new PDF that has better compatibility, is often smaller in file size, can be optional encrypted/secured and contain only a uniform set of font types. Fonts can be normalized to plain PostScript Type 1 formats, can be subsetted, missing fonts included and bad fonts repaired/replaced. PStill can detect and remove duplicate elements in the PDF. Text can be converted to outlines which makes it perfect for creating 'fontless' PDF. Transcoding can be used to repair bad PDF or simplify the PDF structure so more limited output devices can process it.

您的PDF无法在某些打印机上打印或使用某些应用程序处理? PStill可以清理,简化,重新处理,平整透明度并重新压缩PDF文件,这个过程也称为“转码”,创建一个具有更好兼容性的新PDF,文件大小通常较小,可以是可选加密/安全的,只包含一个统一的字体集类型。字体可以标准化为普通的PostScript Type 1格式,可以是子集,包含丢失的字体以及修复/替换坏字体。 PStill可以检测并删除PDF中的重复元素。文本可以转换为轮廓,这使其非常适合创建“无字体”PDF。转码可用于修复错误的PDF或简化PDF结构,因此更有限的输出设备可以处理它。

Andrew.