Skip to content

Commit 8253041

Browse files
Add another potential location for com.apple.paper.doc.pdf FallbackPDFs.
1 parent 572bdec commit 8253041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AppleNotesEmbeddedPaperDocScan.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ def compute_all_filepaths
109109
tmp_account_string = "#{@note.account.account_folder}FallbackPDFs/" if @note # Update to somewhere if we know where
110110
zgeneration = get_zgeneration_for_fallback_pdf
111111

112-
#add_possible_location("#{tmp_account_string}FallbackPDF.pdf.encrypted") if @is_password_protected # This didn't exist before iOS 17
113-
#add_possible_location("#{tmp_account_string}FallbackPDF.pdf") if !@is_password_protected
112+
add_possible_location("#{tmp_account_string}#{@uuid}.pdf.encrypted") if @is_password_protected
113+
add_possible_location("#{tmp_account_string}#{@uuid}.pdf") if !@is_password_protected
114114
add_possible_location("#{tmp_account_string}#{@uuid}/#{zgeneration}/FallbackPDF.pdf.encrypted") if (@is_password_protected and zgeneration and zgeneration.length > 0)
115115
add_possible_location("#{tmp_account_string}#{@uuid}/#{zgeneration}/FallbackPDF.pdf") if (!@is_password_protected and zgeneration and zgeneration.length > 0)
116116

0 commit comments

Comments
 (0)