Commit graph

41 commits

Author SHA1 Message Date
Sixten Otto
8156328cf6 fix some linter warnings on deliberate code 2023-02-20 12:15:29 -07:00
Jackson Harper
395ea3335e PDF highlight position info on iOS 2023-02-02 16:10:18 +08:00
Jackson Harper
d8aa36f148 Start passing in position info when creating highlights on PDFs 2023-02-02 15:19:58 +08:00
Jackson Harper
08405dbcc2 Add highlight positional info to iOS highlights 2023-02-02 15:13:51 +08:00
Satindar Dhillon
dcf40c1daa apply generic local text values 2023-01-25 13:09:19 -08:00
Jackson Harper
d2ad0d63ae Fix comment replacement, remove debug 2022-11-28 15:06:02 +08:00
Jackson Harper
ef8e78380b Save PDF configuration changes
These get reloaded after change, so if we don't save them, they
wont be applied to the document. The appearance setting doesn't
get reloaded so that one does not need to be saved (and we don't
have access to it).
2022-11-28 12:58:47 +08:00
Satindar Dhillon
8144cf8d37 disable pspdfkit feature that asks for author name for annotations 2022-09-29 20:45:19 -07:00
Jackson Harper
1ada0f02cf Add the Lookup (define) menu item to PDF
We removed this to get extra menu space, but users find it useful.
Especially ESL readers.
2022-09-12 11:43:19 +08:00
Satindar Dhillon
6f86495cf4 lint fixes 2022-06-17 13:54:40 -07:00
Satindar Dhillon
726c11afd2 delete a few unused functions and lint fixes 2022-06-17 13:54:40 -07:00
Satindar Dhillon
e399a5e185 rename loadContentWithRtries function. move pdfFetch to own file 2022-06-17 13:54:40 -07:00
Jackson Harper
2a7a87de09 Remove debug lines 2022-06-13 09:42:59 -07:00
Jackson Harper
5a251bfe88 WIP: local PDF saving 2022-06-12 09:12:07 -07:00
Jackson Harper
ce040b8983 Use cached PDFs if available 2022-06-09 13:53:24 -07:00
Jackson Harper
5537766a45 WIP: PDF URLs 2022-06-09 13:53:24 -07:00
Jackson Harper
7b81ad253d Store PDF paths as filenames instead of full URLs
This fixes issues where the full URL of our directory path
changes, also it moves files into documents instead of
caches, and ensures PDFs are downloaded before opening.
2022-06-09 13:52:49 -07:00
Satindar Dhillon
2eb0d94399 make sure end background task is callled on failed saves 2022-05-31 16:15:19 -07:00
Jackson Harper
53c423b714 WIP: upload PDFs using background task 2022-05-30 22:30:43 -07:00
Satindar Dhillon
1a12e545f5 use progressview for pdf loading view 2022-05-23 09:20:52 -07:00
Satindar Dhillon
b46576e937 run controller config once 2022-05-23 08:55:32 -07:00
Satindar Dhillon
11b5dc3172 use stateobject to keep track of pdf document 2022-05-22 23:24:37 -07:00
Satindar Dhillon
3f68a179c8 remove pdfproviders 2022-05-22 10:15:14 -07:00
Satindar Dhillon
14b146291f create a PDFItem struct that can be used by PDFViewer 2022-05-21 10:17:54 -07:00
Satindar Dhillon
29c6193bda set pdf data in local document and pass that url to pspdfkit 2022-04-28 14:58:46 -07:00
Satindar Dhillon
c9052f5f81 use coredata to track highlight merge and updates 2022-04-25 17:50:01 -07:00
Satindar Dhillon
aca38f2077 use coredata for create highlight function 2022-04-25 14:00:50 -07:00
Satindar Dhillon
9828846222 use core data to track reading progress 2022-04-25 12:17:27 -07:00
Satindar Dhillon
26a52819d8 remove linkedItemId from coredata highlight entity 2022-04-24 21:49:02 -07:00
Satindar Dhillon
a63bf7928e remove deprecated data models 2022-04-22 19:58:13 -07:00
Satindar Dhillon
25e237255c remove HighlightDep and pdf specific highlight functions 2022-04-21 22:03:39 -07:00
Satindar Dhillon
43dbcfe27c create NSSet extension 2022-04-21 10:07:46 -07:00
Satindar Dhillon
dd55cd86ae update highlight publishers to make coredata changes 2022-04-21 09:09:26 -07:00
Satindar Dhillon
0fc7ff0a43 rename FeedItem to FeedItemDep 2022-04-21 09:09:26 -07:00
Satindar Dhillon
a60a5e3991 mark some models as deprecated 2022-04-21 09:09:26 -07:00
Satindar Dhillon
905e628e5a create helper function to get unwrapped viewer properties 2022-04-21 09:09:26 -07:00
Satindar Dhillon
1d92e64801 define viewer as a nsmanagedobject 2022-04-21 09:09:26 -07:00
Satindar Dhillon
8ea404a8d8 use coredata to track pdf highlights 2022-04-21 09:09:26 -07:00
Satindar Dhillon
6bb8f76f40 add createdByMe field to Highlight model 2022-03-22 11:51:45 -07:00
Satindar Dhillon
2e01e910bd fetch pdf highlights when pdf is loaded rather than in library query 2022-03-15 10:28:06 -07:00
Satindar Dhillon
e7e710feaa rename Binders package to App 2022-02-24 15:07:32 -08:00