← Back to team overview

qpdfview team mailing list archive

Re: [Question #693142]: Other apps that are compatible with gpdfview

 

Question #693142 on qpdfview changed:
https://answers.launchpad.net/qpdfview/+question/693142

    Status: Open => Answered

Adam Reichold proposed the following answer:
Hello again,

here is a simple Python script that should print all your bookmarks as
plain text:

import os
import sqlite3

conn =
sqlite3.connect(os.path.expanduser('~/.local/share/qpdfview/qpdfview/database'))

for row in conn.execute('SELECT * FROM bookmarks_v3'):
    print(f'file path: {row[0]} page: {row[1]} label: {row[2]}')
    print(f'comment: {row[3]}\n')


Of course, you still have to adjust the output format to something that you can use but that depends on the application that you target.

Best regards,
Adam

-- 
You received this question notification because your team qpdfview is an
answer contact for qpdfview.