wmjordan / wmjordan/PDFPatcher

能否增加修改并保存Contents的功能,包括修改xobject里面的对象的内容流

Open
#258 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

修理 改进
Dominant language
C#
Stars
12.7k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

能否增加修改并保存Contents的功能,包括修改xobject里面的对象的内容流。这样很多简单水印就可以直接使用补丁丁处理,更便捷。

顺便问一下,保存页面内容流在ItextSharp中用SetPageContent就可以了。保存xobject里面的对象的内容流用什么呢?例如x24的内容流如何修改之后保存?

Image

pdf:

xobject.zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the request with the attached xobject.zip and inspect how PDFPatcher currently saves page content. Compare the mentioned iTextSharp SetPageContent approach with the x24 XObject content stream case. Done means defining and implementing a supported way to modify and save both page Contents and nested XObject streams, with verification using the supplied PDF.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.