Fixed the issue "Without index output to the exported PDF file." #310
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.
Fixed the issue "Without index output to the exported PDF file."
Issue reproduce:
Issue trace:
`
root@0a7ea8351174:/usr/bin# wkhtmltopdf --outline toc https://doc.qt.io/archives/qt-4.8/qstring.html qstring.pdf
The switch --outline, is not support using unpatched qt, and will be ignored.QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Error: This version of wkhtmltopdf is built against an unpatched version of QT, and does not support more than one input document.
Exit with code 1, due to unknown error.
root@0a7ea8351174:/usr/bin#
`
Try to fix the issue:
docker exec -u root -it docker-bookstack_bookstack_1 /bin/bash
`
ray@TF:/mnt/n03/github/falcon/docker-bookstack$ docker exec -u root -it docker-bookstack_bookstack_1 /bin/bash
root@c594b64fbcdf:/var/www/bookstack# cd /
root@c594b64fbcdf:/# which wkhtmltopdf
/usr/local/bin/wkhtmltopdf
root@c594b64fbcdf:/# wkhtmltopdf --outline toc https://doc.qt.io/archives/qt-4.8/qstring.html qstring.pdf
Loading pages (1/6)
Error: Failed to load https://doc.qt.io/archives/qt-4.8/.exclude-promos, with network status code 203 and http status code 404 - Error downloading https://doc.qt.io/archives/qt-4.8/.exclude-promos - server replied: Not Found
Error: Failed to load https://stats.g.doubleclick.net/j/collect?t=dc&aip=1&_r=3&v=1&_v=j96&tid=UA-54043535-2&cid=1481849754.1648017330&jid=171526614&gjid=1061804137&_gid=1005382051.1648017330&_u=YEBAAQAAAAAAAC~&z=220685795, with network status code 3 and http status code 0 - Host not found
[=====================================================> ] 89%
Counting pages (2/6)
Loading TOC (3/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done
Exit with code 1 due to network error: HostNotFoundError
root@c594b64fbcdf:/#
`
Even got errors again, but the unsupport error is fixed.
8) export the same page on bookstack and check it, with Index out now!