PdfPig icon indicating copy to clipboard operation
PdfPig copied to clipboard

update Letter.cs to support unicode Code

Open Charltsing opened this issue 1 year ago • 1 comments

Is it possible to add the original string or the original bytes in Letter so that I can find the original instruction position of this character in Contents of PDF. 2015p3.zip

捕获

add 002c0036... and ISTUDY in Letter (or Word ?)

Or there are other ways to find 002c0036... through ISTUDY in Contents of PDF?

for some reason ,it can not use location information.

Charltsing avatar Oct 02 '24 08:10 Charltsing

i update the code PdfPig-master\src\UglyToad.PdfPig\Graphics\ContentStreamProcessor.cs

捕获 Letter.zip

Charltsing avatar Oct 06 '24 08:10 Charltsing

@Charltsing can you give more details about what you are trying to achieve here? FYI, "ISTUDY" is a word here, i.e. many letters.

Also, there is no guaranty the code variable is unicode

BobLd avatar Apr 22 '25 21:04 BobLd

Because it's been too long, I can't remember my specific thoughts back then. Perhaps it is hoped that the Letter class can add the cmap attribute, so that cmap and Unicode can be placed together. This requirement is only required in special functions, such as searching for text watermarks.

Charltsing avatar Apr 22 '25 22:04 Charltsing

@Charltsing no problem at all. I'll close the issue for now but feel free to reopen if need be

BobLd avatar Apr 22 '25 22:04 BobLd