07-21-2023, 02:01 PM | #16 |
Sigil Developer
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
|
In case anyone wants to test embedded pdf support via linking locally (inside epub) to it, or showing an embedded pdf in an iframe, or using an object tag to properly handle fallback from an embedded pdf to xhtml, you can play around with section0001 (link to pdf embedded in epub), Section0003 (uses iframe to load content from embedded epub) and Section0004 (uses object tag to fallback properly in case reader does not support pdf).
Please see the attached test case. If anyone has a moment I would appreciate seeing if this works on the arm64 build. Last edited by KevinH; 07-21-2023 at 02:16 PM. |
07-21-2023, 04:12 PM | #17 |
Zealot
Posts: 114
Karma: 10
Join Date: Sep 2019
Location: Ukraine
Device: Computer, iPad
|
Don't know what should be going on in your pdf test.
Recorded a video. See for yourself. I hope there will be what you wanted to see. The second video is your test ePub in AZARDI for Windows. |
Advert | |
|
07-21-2023, 05:03 PM | #18 |
Sigil Developer
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Wow, your testing with the latest arm64 build right? On my machine, if I load that epub into Sigil, open Section0001.xhtml and click on the link at the bottom of the page it loads and displays the pdf in Sigil's CodeView Tab (like it would an image or font tab).
In Section0003.xhtml an iframe loads the pdf into Preview (just like Azardi does). In Section0004.xhtml an object tag loads the pdf into Preview or alternatively will load Section0002.xhtml placeholder if pdf is not supported. It should look and act just like Azardi video does. So it is broken on your M1 Mac but works fine on my M2 Mac. Strange. Last edited by KevinH; 07-21-2023 at 06:06 PM. |
07-21-2023, 05:43 PM | #19 |
Sigil Developer
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Sorry, I realized that the build I have been testing with is a Qt6.5.1 arm64 build and the pdf stuff all just works.
Unfortunately, when I tried with the frankenstein Qt 5.15.10 arm64 build I posted for you it is totally broken in regards to pdfs. If I instead bring over a Qt 5.15.9 build of Sigil using x86_64 and run it under Rossetta 2 on my arm64 Mac then pdfs work perfectly. So native Qt 5.15 is just broken on arm64 Mac. So when it is time for the upcoming release, I am going to be posting experimental Sigil and PageEdit builds using Qt 6.5.1. Users of arm64 Macs can choose to use them or simply run Sigil under Rossetta 2 as they have been doing all along. Thanks for testing and reporting back. Last edited by KevinH; 07-21-2023 at 06:08 PM. |
07-21-2023, 06:42 PM | #20 |
just an egg
Posts: 1,692
Karma: 5513698
Join Date: Mar 2015
Device: Kindle, iOS
|
I was too slow. I tested after you originally posted but before you re-posted. I got same blanks as User_Z's video (as now expected), except for Section0004 I got the fallback text instead of nothing.
|
Advert | |
|
07-21-2023, 06:51 PM | #21 |
Sigil Developer
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Thanks for trying and reporting back!
I am beginning to think Sigil's transition to Qt6 must come sooner rather than later. |
07-23-2023, 06:44 PM | #22 |
Evangelist
Posts: 440
Karma: 77256
Join Date: Sep 2011
Device: none
|
I have not tried updating Qt5 since my first build on Apple Silicon thus I am aware of anyone else has provided other patches. I found MacPorts includes some, starting it seems around line 1056. As they saw fit to include them, perhaps they'll be of help yet I haven't kooked to see what they are.
https://github.com/macports/macports...a/qt5/Portfile |
07-23-2023, 08:04 PM | #23 |
Sigil Developer
Posts: 8,156
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Thanks for that link. The issue is deep inside the QtWebEngine Chrome extensions loading code that does not support arm64 page sizes in Qt 5.15.x which is needed for pdf support. The bug was in Chrome code. It works just fine in Qt6's newer QtWebEngine/Chrome codebase and we will be moving to Qt6 quite soon. So supporting Qt 5.15.x makes little sense for arm64 macs.
FWIW, Qt6.5.2 builds out of the box on arm64 macs running Ventura with no build patches needed. Last edited by KevinH; 07-23-2023 at 08:25 PM. |
07-25-2023, 08:18 PM | #24 |
Evangelist
Posts: 440
Karma: 77256
Join Date: Sep 2011
Device: none
|
Volunteer needed for Mac (Apple Silicon) arm64 build test
Just saw the post about the move to Qt6.
Last edited by democrite; 07-25-2023 at 08:23 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
M1 Mac (Apple Silicon) and Calibre 6.0.0 performance | fogice | Calibre | 1 | 07-13-2022 02:04 PM |
Is Calibre compatible with Apple Silicon M1 Macs (using rosetta 2)? | kirk8677 | Calibre | 29 | 01-22-2021 08:39 AM |
Volunteer Icon Artist needed | KevinH | Sigil | 17 | 09-09-2016 12:35 AM |
Using AutoHotKey to test/build Sigil | Halo | Sigil | 3 | 08-15-2011 11:36 AM |
Build help needed | Elsi | Upload Help | 14 | 06-13-2008 04:38 PM |