使用fpdi编辑受密码保护的PDF [英] Editing password protected pdfs with fpdi

查看:181
本文介绍了使用fpdi编辑受密码保护的PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用fpdf和fpdi将水印添加到受密码保护的pdf(仅写保护)中.

I've been trying to add a watermark to a password protected pdf (protect to write only) with fpdf and fpdi.

它适用于普通pdf,但是受密码保护时会出现此错误:

It works on normal pdfs but when it is password protected it gives this error:

FPDF错误:本文档(upd/509ae4a4044df9a43e03e09b4cf772b0.pdf) 可能使用的压缩技术不受 FPDI附带的免费解析器.

FPDF error: This document (upd/509ae4a4044df9a43e03e09b4cf772b0.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.

这是不可能写在文档上的,但是在搜索时我发现类似的问题得到了解决.

It makes sense that it isn't possible to write on the document but while searching I've seen similar problems getting resolved.

非常感谢.

推荐答案

根据

According to the manual, the free version cannot process secured files. They can be processed only with the paid version.

但是,以上错误也发生在非安全文件中.可以通过重新保存模板并更改压缩类型来克服.

The error above however occurs also in non-secured files. It can be overcome by re-saving the template and change compression type.

在Adobe Acrobat Pro中,转到 文件->另存为->优化的PDF->弹出式左侧列表-清理

In Adobe Acrobat Pro go to File->Save As->Optimised PDF-> Popup left list - Clean Up,

对象压缩选项->更改为压缩文档结构"->确定以保存

这篇关于使用fpdi编辑受密码保护的PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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