forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rotate images in rotated PDFs before sending them to OCR.
If a PDF page is marked as rotated, the images in that page are rotated before being sent to OCR service. Bug: 1469236 Change-Id: I82d8981df86f0d7224886765589ed10dec551338 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4735395 Commit-Queue: Ramin Halavati <rhalavati@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Cr-Commit-Position: refs/heads/main@{#1180140}
- Loading branch information
Ramin Halavati
authored and
Chromium LUCI CQ
committed
Aug 7, 2023
1 parent
d096e54
commit 6e0174a
Showing
5 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{{header}} | ||
{{object 1 0}} << | ||
/Type /Catalog | ||
/Pages 2 0 R | ||
>> | ||
endobj | ||
{{object 2 0}} << | ||
/Type /Pages | ||
/MediaBox [0 0 200 200] | ||
/Count 1 | ||
/Kids [3 0 R] | ||
>> | ||
endobj | ||
{{object 3 0}} << | ||
/Type /Page | ||
/Parent 2 0 R | ||
/Contents 4 0 R | ||
/Rotate 270 | ||
/Resources << | ||
/XObject << | ||
/Img 5 0 R | ||
>> | ||
>> | ||
>> | ||
endobj | ||
{{object 4 0}} << | ||
{{streamlen}} | ||
>> | ||
stream | ||
q | ||
30 -30 40 40 100 100 cm | ||
/Img Do | ||
Q | ||
endstream | ||
endobj | ||
{{object 5 0}} << | ||
/Type /XObject | ||
/Subtype /Image | ||
/Width 100 | ||
/Height 25 | ||
/BitsPerComponent 8 | ||
/ColorSpace /DeviceRGB | ||
/Filter [/ASCIIHexDecode /FlateDecode] | ||
{{streamlen}} | ||
>> | ||
stream | ||
789cedc2310d00000c03a07f2aaab3ea7bcf03842655555555555555f5bf01cc7818dc | ||
endstream | ||
endobj | ||
{{xref}} | ||
{{trailer}} | ||
{{startxref}} | ||
%%EOF |
Binary file not shown.