Closed KodywithaK closed 5 months ago
Thanks for your report. Does the page ordering issue also happen if you open your ebook in Google Play Books? Or does this issue only happen in the PDF that is created with my tool?
Just on the created pdfs, anytime the page order is right to left instead of left to right
@KodywithaK Interesting... Could you share the manifest.json
file? You can censor the links inside that contain &sig=
if you want.
I haven't committed for a PR yet, but also I added unescape_html()
to manifest_text to prevent HTML special characters from showing up in the manifest like a couple do in the zip here
const manifest = JSON.parse(unescape_html(manifest_text));
Interesting.
So I see in the following in manifest vSzFDwAAQBAJ.json
and manifest xpKkDwAAQBAJ.json
:
"is_right_to_left": true,
Can you confirm that these two books have the odd and even pages reversed in the PDF that is produced by the tool? And can you confirm that the remaining book EzGDwAAQBAJ
doesn't have issues?
Yes, that's true; on vSzF and xpKk I had to move the page order around to look as it should
Summary
I don't know how many people will run into this same problem—as it may just be the eBooks I purchased are odd ducks, but if not—hopefully this helps
Problem
I had an issue with my page order (the eBook was an official english translation of an eBook originally in japanese), so every odd numbered page starting from page 3 was on the opposite side of its intended 2-page spread
Solution
With VSCode, I opened the "google-play-book-downloader\books\{BOOK_ID}\pages.txt" file
Ctrl+H
"(.*\n){2}*" in the Find*** field with RegEx enabled (to highlight all the odd numbered lines)Alt+Enter
to Select All Occurrences of Find Match, minus the front & back coversRight
to get the multiple cursors ready, thenAlt+Up
to move the odd numbered lines up 1 linepoetry run play-book-pdf-build books/{BOOK_ID}
to output the eBook in its intended orderThanks devnoname120, your program is a big help to backup all my books!