[Interest] How to embed pdf.js
Nicolas Krieger
nicolas.krieger at medecom.fr
Thu Sep 28 10:48:06 CEST 2017
Hi,
I am trying to embed pdf.js in a qrc file.
I can use pdf.js in a QWebView in using the complete filepath.
Everything is working fine, I can use buttons and load a file using
"runJavaScript" on a QWebEnginePage. I can also load a pdf file using
pdf.js user interface.
But when I try to embed pdf.js in a qrc file, I just see that the pdf
viewer has been loaded, but I can't neither load a file nor use buttons.
Nothing happens.
I have attached the qrc file I use.
I d'ont understand what is wrong with qrc method.
Nicolas Krieger
-------------- next part --------------
<RCC>
<qresource prefix="/pdf.js">
<file>pdf.js/debugger.js</file>
<file>pdf.js/l10n.js</file>
<file>pdf.js/viewer.css</file>
<file>pdf.js/viewer.html</file>
<file>pdf.js/viewer.js</file>
<file>pdf.js/cmaps/78-EUC-H.bcmap</file>
<file>pdf.js/cmaps/78-EUC-V.bcmap</file>
<file>pdf.js/cmaps/78-H.bcmap</file>
<file>pdf.js/cmaps/78ms-RKSJ-H.bcmap</file>
<file>pdf.js/cmaps/78ms-RKSJ-V.bcmap</file>
<file>pdf.js/cmaps/78-RKSJ-H.bcmap</file>
<file>pdf.js/cmaps/78-RKSJ-V.bcmap</file>
<file>pdf.js/cmaps/78-V.bcmap</file>
<file>pdf.js/cmaps/83pv-RKSJ-H.bcmap</file>
<file>pdf.js/cmaps/90msp-RKSJ-H.bcmap</file>
<file>pdf.js/cmaps/90msp-RKSJ-V.bcmap</file>
<file>pdf.js/cmaps/90ms-RKSJ-H.bcmap</file>
<file>pdf.js/cmaps/90ms-RKSJ-V.bcmap</file>
<file>pdf.js/cmaps/90pv-RKSJ-H.bcmap</file>
<file>pdf.js/cmaps/90pv-RKSJ-V.bcmap</file>
<file>pdf.js/cmaps/Add-H.bcmap</file>
<file>pdf.js/cmaps/Add-RKSJ-H.bcmap</file>
<file>pdf.js/cmaps/Add-RKSJ-V.bcmap</file>
<file>pdf.js/cmaps/Add-V.bcmap</file>
<file>pdf.js/cmaps/Adobe-CNS1-0.bcmap</file>
<file>pdf.js/cmaps/Adobe-CNS1-1.bcmap</file>
<file>pdf.js/cmaps/Adobe-CNS1-2.bcmap</file>
<file>pdf.js/cmaps/Adobe-CNS1-3.bcmap</file>
<file>pdf.js/cmaps/Adobe-CNS1-4.bcmap</file>
<file>pdf.js/cmaps/Adobe-CNS1-5.bcmap</file>
<file>pdf.js/cmaps/Adobe-CNS1-6.bcmap</file>
<file>pdf.js/cmaps/Adobe-CNS1-UCS2.bcmap</file>
<file>pdf.js/cmaps/Adobe-GB1-0.bcmap</file>
<file>pdf.js/cmaps/Adobe-GB1-1.bcmap</file>
<file>pdf.js/cmaps/Adobe-GB1-2.bcmap</file>
<file>pdf.js/cmaps/Adobe-GB1-3.bcmap</file>
<file>pdf.js/cmaps/Adobe-GB1-4.bcmap</file>
<file>pdf.js/cmaps/Adobe-GB1-5.bcmap</file>
<file>pdf.js/cmaps/Adobe-GB1-UCS2.bcmap</file>
<file>pdf.js/cmaps/Adobe-Japan1-0.bcmap</file>
<file>pdf.js/cmaps/Adobe-Japan1-1.bcmap</file>
<file>pdf.js/cmaps/Adobe-Japan1-2.bcmap</file>
<file>pdf.js/cmaps/Adobe-Japan1-3.bcmap</file>
<file>pdf.js/cmaps/Adobe-Japan1-4.bcmap</file>
<file>pdf.js/cmaps/Adobe-Japan1-5.bcmap</file>
<file>pdf.js/cmaps/Adobe-Japan1-6.bcmap</file>
<file>pdf.js/cmaps/Adobe-Japan1-UCS2.bcmap</file>
<file>pdf.js/cmaps/Adobe-Korea1-0.bcmap</file>
<file>pdf.js/cmaps/Adobe-Korea1-1.bcmap</file>
<file>pdf.js/cmaps/Adobe-Korea1-2.bcmap</file>
<file>pdf.js/cmaps/Adobe-Korea1-UCS2.bcmap</file>
<file>pdf.js/cmaps/B5-H.bcmap</file>
<file>pdf.js/cmaps/B5pc-H.bcmap</file>
<file>pdf.js/cmaps/B5pc-V.bcmap</file>
<file>pdf.js/cmaps/B5-V.bcmap</file>
<file>pdf.js/cmaps/CNS1-H.bcmap</file>
<file>pdf.js/cmaps/CNS1-V.bcmap</file>
<file>pdf.js/cmaps/CNS2-H.bcmap</file>
<file>pdf.js/cmaps/CNS2-V.bcmap</file>
<file>pdf.js/cmaps/CNS-EUC-H.bcmap</file>
<file>pdf.js/cmaps/CNS-EUC-V.bcmap</file>
<file>pdf.js/cmaps/ETen-B5-H.bcmap</file>
<file>pdf.js/cmaps/ETen-B5-V.bcmap</file>
<file>pdf.js/cmaps/ETenms-B5-H.bcmap</file>
<file>pdf.js/cmaps/ETenms-B5-V.bcmap</file>
<file>pdf.js/cmaps/ETHK-B5-H.bcmap</file>
<file>pdf.js/cmaps/ETHK-B5-V.bcmap</file>
<file>pdf.js/cmaps/EUC-H.bcmap</file>
<file>pdf.js/cmaps/EUC-V.bcmap</file>
<file>pdf.js/cmaps/Ext-H.bcmap</file>
<file>pdf.js/cmaps/Ext-RKSJ-H.bcmap</file>
<file>pdf.js/cmaps/Ext-RKSJ-V.bcmap</file>
<file>pdf.js/cmaps/Ext-V.bcmap</file>
<file>pdf.js/cmaps/GB-EUC-H.bcmap</file>
<file>pdf.js/cmaps/GB-EUC-V.bcmap</file>
<file>pdf.js/cmaps/GB-H.bcmap</file>
<file>pdf.js/cmaps/GBK2K-H.bcmap</file>
<file>pdf.js/cmaps/GBK2K-V.bcmap</file>
<file>pdf.js/cmaps/GBK-EUC-H.bcmap</file>
<file>pdf.js/cmaps/GBK-EUC-V.bcmap</file>
<file>pdf.js/cmaps/GBKp-EUC-H.bcmap</file>
<file>pdf.js/cmaps/GBKp-EUC-V.bcmap</file>
<file>pdf.js/cmaps/GBpc-EUC-H.bcmap</file>
<file>pdf.js/cmaps/GBpc-EUC-V.bcmap</file>
<file>pdf.js/cmaps/GBT-EUC-H.bcmap</file>
<file>pdf.js/cmaps/GBT-EUC-V.bcmap</file>
<file>pdf.js/cmaps/GBT-H.bcmap</file>
<file>pdf.js/cmaps/GBTpc-EUC-H.bcmap</file>
<file>pdf.js/cmaps/GBTpc-EUC-V.bcmap</file>
<file>pdf.js/cmaps/GBT-V.bcmap</file>
<file>pdf.js/cmaps/GB-V.bcmap</file>
<file>pdf.js/cmaps/H.bcmap</file>
<file>pdf.js/cmaps/Hankaku.bcmap</file>
<file>pdf.js/cmaps/Hiragana.bcmap</file>
<file>pdf.js/cmaps/HKdla-B5-H.bcmap</file>
<file>pdf.js/cmaps/HKdla-B5-V.bcmap</file>
<file>pdf.js/cmaps/HKdlb-B5-H.bcmap</file>
<file>pdf.js/cmaps/HKdlb-B5-V.bcmap</file>
<file>pdf.js/cmaps/HKgccs-B5-H.bcmap</file>
<file>pdf.js/cmaps/HKgccs-B5-V.bcmap</file>
<file>pdf.js/cmaps/HKm314-B5-H.bcmap</file>
<file>pdf.js/cmaps/HKm314-B5-V.bcmap</file>
<file>pdf.js/cmaps/HKm471-B5-H.bcmap</file>
<file>pdf.js/cmaps/HKm471-B5-V.bcmap</file>
<file>pdf.js/cmaps/HKscs-B5-H.bcmap</file>
<file>pdf.js/cmaps/HKscs-B5-V.bcmap</file>
<file>pdf.js/cmaps/Katakana.bcmap</file>
<file>pdf.js/cmaps/KSC-EUC-H.bcmap</file>
<file>pdf.js/cmaps/KSC-EUC-V.bcmap</file>
<file>pdf.js/cmaps/KSC-H.bcmap</file>
<file>pdf.js/cmaps/KSC-Johab-H.bcmap</file>
<file>pdf.js/cmaps/KSC-Johab-V.bcmap</file>
<file>pdf.js/cmaps/KSCms-UHC-H.bcmap</file>
<file>pdf.js/cmaps/KSCms-UHC-HW-H.bcmap</file>
<file>pdf.js/cmaps/KSCms-UHC-HW-V.bcmap</file>
<file>pdf.js/cmaps/KSCms-UHC-V.bcmap</file>
<file>pdf.js/cmaps/KSCpc-EUC-H.bcmap</file>
<file>pdf.js/cmaps/KSCpc-EUC-V.bcmap</file>
<file>pdf.js/cmaps/KSC-V.bcmap</file>
<file>pdf.js/cmaps/LICENSE</file>
<file>pdf.js/cmaps/NWP-H.bcmap</file>
<file>pdf.js/cmaps/NWP-V.bcmap</file>
<file>pdf.js/cmaps/RKSJ-H.bcmap</file>
<file>pdf.js/cmaps/RKSJ-V.bcmap</file>
<file>pdf.js/cmaps/Roman.bcmap</file>
<file>pdf.js/cmaps/UniCNS-UCS2-H.bcmap</file>
<file>pdf.js/cmaps/UniCNS-UCS2-V.bcmap</file>
<file>pdf.js/cmaps/UniCNS-UTF8-H.bcmap</file>
<file>pdf.js/cmaps/UniCNS-UTF8-V.bcmap</file>
<file>pdf.js/cmaps/UniCNS-UTF16-H.bcmap</file>
<file>pdf.js/cmaps/UniCNS-UTF16-V.bcmap</file>
<file>pdf.js/cmaps/UniCNS-UTF32-H.bcmap</file>
<file>pdf.js/cmaps/UniCNS-UTF32-V.bcmap</file>
<file>pdf.js/cmaps/UniGB-UCS2-H.bcmap</file>
<file>pdf.js/cmaps/UniGB-UCS2-V.bcmap</file>
<file>pdf.js/cmaps/UniGB-UTF8-H.bcmap</file>
<file>pdf.js/cmaps/UniGB-UTF8-V.bcmap</file>
<file>pdf.js/cmaps/UniGB-UTF16-H.bcmap</file>
<file>pdf.js/cmaps/UniGB-UTF16-V.bcmap</file>
<file>pdf.js/cmaps/UniGB-UTF32-H.bcmap</file>
<file>pdf.js/cmaps/UniGB-UTF32-V.bcmap</file>
<file>pdf.js/cmaps/UniJIS2004-UTF8-H.bcmap</file>
<file>pdf.js/cmaps/UniJIS2004-UTF8-V.bcmap</file>
<file>pdf.js/cmaps/UniJIS2004-UTF16-H.bcmap</file>
<file>pdf.js/cmaps/UniJIS2004-UTF16-V.bcmap</file>
<file>pdf.js/cmaps/UniJIS2004-UTF32-H.bcmap</file>
<file>pdf.js/cmaps/UniJIS2004-UTF32-V.bcmap</file>
<file>pdf.js/cmaps/UniJISPro-UCS2-HW-V.bcmap</file>
<file>pdf.js/cmaps/UniJISPro-UCS2-V.bcmap</file>
<file>pdf.js/cmaps/UniJISPro-UTF8-V.bcmap</file>
<file>pdf.js/cmaps/UniJIS-UCS2-H.bcmap</file>
<file>pdf.js/cmaps/UniJIS-UCS2-HW-H.bcmap</file>
<file>pdf.js/cmaps/UniJIS-UCS2-HW-V.bcmap</file>
<file>pdf.js/cmaps/UniJIS-UCS2-V.bcmap</file>
<file>pdf.js/cmaps/UniJIS-UTF8-H.bcmap</file>
<file>pdf.js/cmaps/UniJIS-UTF8-V.bcmap</file>
<file>pdf.js/cmaps/UniJIS-UTF16-H.bcmap</file>
<file>pdf.js/cmaps/UniJIS-UTF16-V.bcmap</file>
<file>pdf.js/cmaps/UniJIS-UTF32-H.bcmap</file>
<file>pdf.js/cmaps/UniJIS-UTF32-V.bcmap</file>
<file>pdf.js/cmaps/UniJISX0213-UTF32-H.bcmap</file>
<file>pdf.js/cmaps/UniJISX0213-UTF32-V.bcmap</file>
<file>pdf.js/cmaps/UniJISX02132004-UTF32-H.bcmap</file>
<file>pdf.js/cmaps/UniJISX02132004-UTF32-V.bcmap</file>
<file>pdf.js/cmaps/UniKS-UCS2-H.bcmap</file>
<file>pdf.js/cmaps/UniKS-UCS2-V.bcmap</file>
<file>pdf.js/cmaps/UniKS-UTF8-H.bcmap</file>
<file>pdf.js/cmaps/UniKS-UTF8-V.bcmap</file>
<file>pdf.js/cmaps/UniKS-UTF16-H.bcmap</file>
<file>pdf.js/cmaps/UniKS-UTF16-V.bcmap</file>
<file>pdf.js/cmaps/UniKS-UTF32-H.bcmap</file>
<file>pdf.js/cmaps/UniKS-UTF32-V.bcmap</file>
<file>pdf.js/cmaps/V.bcmap</file>
<file>pdf.js/cmaps/WP-Symbol.bcmap</file>
<file>pdf.js/images/annotation-check.svg</file>
<file>pdf.js/images/annotation-comment.svg</file>
<file>pdf.js/images/annotation-help.svg</file>
<file>pdf.js/images/annotation-insert.svg</file>
<file>pdf.js/images/annotation-key.svg</file>
<file>pdf.js/images/annotation-newparagraph.svg</file>
<file>pdf.js/images/annotation-noicon.svg</file>
<file>pdf.js/images/annotation-note.svg</file>
<file>pdf.js/images/annotation-paragraph.svg</file>
<file>pdf.js/images/findbarButton-next.png</file>
<file>pdf.js/images/findbarButton-next at 2x.png</file>
<file>pdf.js/images/findbarButton-next-rtl.png</file>
<file>pdf.js/images/findbarButton-next-rtl at 2x.png</file>
<file>pdf.js/images/findbarButton-previous.png</file>
<file>pdf.js/images/findbarButton-previous at 2x.png</file>
<file>pdf.js/images/findbarButton-previous-rtl.png</file>
<file>pdf.js/images/findbarButton-previous-rtl at 2x.png</file>
<file>pdf.js/images/grab.cur</file>
<file>pdf.js/images/grabbing.cur</file>
<file>pdf.js/images/loading-icon.gif</file>
<file>pdf.js/images/loading-small.png</file>
<file>pdf.js/images/loading-small at 2x.png</file>
<file>pdf.js/images/secondaryToolbarButton-documentProperties.png</file>
<file>pdf.js/images/secondaryToolbarButton-documentProperties at 2x.png</file>
<file>pdf.js/images/secondaryToolbarButton-firstPage.png</file>
<file>pdf.js/images/secondaryToolbarButton-firstPage at 2x.png</file>
<file>pdf.js/images/secondaryToolbarButton-handTool.png</file>
<file>pdf.js/images/secondaryToolbarButton-handTool at 2x.png</file>
<file>pdf.js/images/secondaryToolbarButton-lastPage.png</file>
<file>pdf.js/images/secondaryToolbarButton-lastPage at 2x.png</file>
<file>pdf.js/images/secondaryToolbarButton-rotateCcw.png</file>
<file>pdf.js/images/secondaryToolbarButton-rotateCcw at 2x.png</file>
<file>pdf.js/images/secondaryToolbarButton-rotateCw.png</file>
<file>pdf.js/images/secondaryToolbarButton-rotateCw at 2x.png</file>
<file>pdf.js/images/shadow.png</file>
<file>pdf.js/images/texture.png</file>
<file>pdf.js/images/toolbarButton-bookmark.png</file>
<file>pdf.js/images/toolbarButton-bookmark at 2x.png</file>
<file>pdf.js/images/toolbarButton-download.png</file>
<file>pdf.js/images/toolbarButton-download at 2x.png</file>
<file>pdf.js/images/toolbarButton-menuArrows.png</file>
<file>pdf.js/images/toolbarButton-menuArrows at 2x.png</file>
<file>pdf.js/images/toolbarButton-openFile.png</file>
<file>pdf.js/images/toolbarButton-openFile at 2x.png</file>
<file>pdf.js/images/toolbarButton-pageDown.png</file>
<file>pdf.js/images/toolbarButton-pageDown at 2x.png</file>
<file>pdf.js/images/toolbarButton-pageDown-rtl.png</file>
<file>pdf.js/images/toolbarButton-pageDown-rtl at 2x.png</file>
<file>pdf.js/images/toolbarButton-pageUp.png</file>
<file>pdf.js/images/toolbarButton-pageUp at 2x.png</file>
<file>pdf.js/images/toolbarButton-pageUp-rtl.png</file>
<file>pdf.js/images/toolbarButton-pageUp-rtl at 2x.png</file>
<file>pdf.js/images/toolbarButton-presentationMode.png</file>
<file>pdf.js/images/toolbarButton-presentationMode at 2x.png</file>
<file>pdf.js/images/toolbarButton-print.png</file>
<file>pdf.js/images/toolbarButton-print at 2x.png</file>
<file>pdf.js/images/toolbarButton-search.png</file>
<file>pdf.js/images/toolbarButton-search at 2x.png</file>
<file>pdf.js/images/toolbarButton-secondaryToolbarToggle.png</file>
<file>pdf.js/images/toolbarButton-secondaryToolbarToggle at 2x.png</file>
<file>pdf.js/images/toolbarButton-secondaryToolbarToggle-rtl.png</file>
<file>pdf.js/images/toolbarButton-secondaryToolbarToggle-rtl at 2x.png</file>
<file>pdf.js/images/toolbarButton-sidebarToggle.png</file>
<file>pdf.js/images/toolbarButton-sidebarToggle at 2x.png</file>
<file>pdf.js/images/toolbarButton-sidebarToggle-rtl.png</file>
<file>pdf.js/images/toolbarButton-sidebarToggle-rtl at 2x.png</file>
<file>pdf.js/images/toolbarButton-viewAttachments.png</file>
<file>pdf.js/images/toolbarButton-viewAttachments at 2x.png</file>
<file>pdf.js/images/toolbarButton-viewOutline.png</file>
<file>pdf.js/images/toolbarButton-viewOutline at 2x.png</file>
<file>pdf.js/images/toolbarButton-viewOutline-rtl.png</file>
<file>pdf.js/images/toolbarButton-viewOutline-rtl at 2x.png</file>
<file>pdf.js/images/toolbarButton-viewThumbnail.png</file>
<file>pdf.js/images/toolbarButton-viewThumbnail at 2x.png</file>
<file>pdf.js/images/toolbarButton-zoomIn.png</file>
<file>pdf.js/images/toolbarButton-zoomIn at 2x.png</file>
<file>pdf.js/images/toolbarButton-zoomOut.png</file>
<file>pdf.js/images/toolbarButton-zoomOut at 2x.png</file>
<file>pdf.js/images/treeitem-collapsed.png</file>
<file>pdf.js/images/treeitem-collapsed at 2x.png</file>
<file>pdf.js/images/treeitem-collapsed-rtl.png</file>
<file>pdf.js/images/treeitem-collapsed-rtl at 2x.png</file>
<file>pdf.js/images/treeitem-expanded.png</file>
<file>pdf.js/images/treeitem-expanded at 2x.png</file>
<file>pdf.js/locale/locale.properties</file>
<file>pdf.js/locale/fr/viewer.properties</file>
<file>pdf.js/locale/en-GB/viewer.properties</file>
<file>pdf.js/locale/en-US/viewer.properties</file>
</qresource>
</RCC>
More information about the Interest
mailing list