Fix #934: Create correct cidcoding name #935
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request
In some PDF files, cmap data could not be read correctly.
This was due to unintentional whitespace in the filename used to read the cmap file.
This fix will allow cmap to be read correctly in some PDF files.
The PDF file where this occurs is bs104761.pdf in #934.
The PDF contained whitespace in
cid_registry
andcid_ordering
.cid_registry:
Adobe�����������
cid_ordering:
Japan1\n\n\n\n\n\n\n\n\n\n
Therefore,
strip()
was used to remove the whitespace characters.How Has This Been Tested?
With the corrected version, the text extraction can be performed correctly in bs104761.pdf.
Behavior before modification:
Checklist