mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-24 13:48:49 +08:00

* Fixed filename:page in logging * Got CMap working for multi-rune entries * Treat CMap entries as strings instead of runes to handle multi-byte encodings. * Added a test for multibyte encoding. * First version of text extraction that recognizes columns * Added an expanation of the text columns code to README.md. * fixed typos * Abstracted textWord depth calculation. This required change textMark to *textMark in a lot of code. * Added function comments. * Fixed text state save/restore. * Adjusted inter-word search distance to make paragrah division work for thanh.pdf * Got text_test.go passing. * Reinstated hyphen suppression * Handle more cases of fonts not being set in text extraction code. * Fixed typo * More verbose logging * Adding tables to text extractor. * Added tests for columns extraction. * Removed commented code * Check for textParas that are on the same line when writing out extracted text. * Absorb text to the left of paras into paras e.g. Footnote numbers * Removed funny character from text_test.go * Commented out a creator_test.go test that was broken by my text extraction changes. * Big changes to columns text extraction code for PR. Performance improvements in several places. Commented code. * Updated extractor/README * Cleaned up some comments and removed a panic * Increased threshold for truncating extracted text when there is no license 100 -> 102. This is a workaround to let a test in creator_test.go pass. With the old text extraction code the following extracted text was 100 chars. With the new code it is 102 chars which looks correct. "你好\n你好你好你好你好\n河上白云\n\nUnlicensed UniDoc - Get a license on https://unidoc.io\n\n" * Improved an error message. * Removed irrelevant spaces * Commented code and removed unused functions. * Reverted PdfRectangle changes * Added duplicate text detection. * Combine diacritic textMarks in text extraction * Reinstated a diacritic recombination test. * Small code reorganisation * Reinstated handling of rotated text * Addressed issues in PR review * Added color fields to TextMark * Updated README * Reinstated the disabled tests I missed before. * Tightened definition for tables to prevent detection of tables where there weren't any. * Compute line splitting search range based on fontsize of first word in word bag. * Use errors.Is(err, core.ErrNotSupported) to distinguish unsupported font errorrs. See https://blog.golang.org/go1.13-errors * Fixed some naming and added some comments. * errors.Is -> xerrors.Is and %w -> %v for go 1.12 compatibility * Removed code that doesn't ever get called. * Removed unused test
20 lines
689 B
Modula-2
20 lines
689 B
Modula-2
module github.com/unidoc/unipdf/v3
|
|
|
|
go 1.11
|
|
|
|
require (
|
|
github.com/adrg/sysfont v0.1.0
|
|
github.com/boombuler/barcode v1.0.0
|
|
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
|
|
github.com/sirupsen/logrus v1.6.0 // indirect
|
|
github.com/stretchr/testify v1.4.0
|
|
github.com/unidoc/pkcs7 v0.0.0-20200411230602-d883fd70d1df
|
|
github.com/unidoc/timestamp v0.0.0-20200412005513-91597fd3793a
|
|
github.com/unidoc/unitype v0.2.0
|
|
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5
|
|
golang.org/x/image v0.0.0-20181116024801-cd38e8056d9b
|
|
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1 // indirect
|
|
golang.org/x/text v0.3.2
|
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
|
|
)
|