导出、导入文字层

Open
#128 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
tooling

Research direction

No files, tests, or entry points are named. Start by reviewing PDFPatcher's existing PDF structure, image, and text-layer extraction or merge functionality. Define done as transferring coordinate-aware OCR text between matching PDFs or replacing images while preserving the original image data and handling page-size differences.

Written by the indexing model from the issue text.

Description

:heart:

使用场景

类似这样的场景
将pdf文本层复制到另一个pdf | 智问智答

具体描述:
在对扫描版PDF文件OCR处理的软件中abbyy可以说是顶流的,但是使用abbyy也带来一个问题:OCR处理之后,保存文件时,abbyy会对图像进行处理,导致保存的PDF文件膨胀的很厉害,即使不勾选任何图像预处理选项、保存时使用的是最佳质量,也是这样(使用PDF补丁丁导出OCR处理前后PDF文件中的图片,发现图片的大小发生了变化,计算hash值肯定也是不一样的)。

功能应该怎样实现
方案1:提取出A文件(比如abbyy OCR 处理之后的PDF文件)中的文字层(带有坐标的文本),然后导入到文件B中(比如abbyy OCR处理之前的PDF文件),从而达到目的,可能需要考虑提前把A、B两个文件对应页面大小调整为一致
方案2:使用文件B中的图像替换文件A中图像

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

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.

More from wmjordan/PDFPatcher

All issues in wmjordan/PDFPatcher

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.