The release notes claim that PDF sidebar page delete is fixed for 2.9.6, but although the context menu choice for delete page is back, it doesn’t work properly. The selected page icon disappears but the change is not permanent.
Under 10.12.1, the following Swift code snippet works as expected, so it looks like this could be on your end.
let myPDFfileURL = URL(string: “file:///Volumes/Master/Projects/PDFKitTest/testpdf.pdf”)
let pdf = PDFDocument(url: myPDFfileURL!)
pdf?.page(at: 1)?.string // outputs the text of the second page
pdf?.removePage(at: 0)
pdf?.page(at: 0)?.string // now the second page is the first page so the delete worked
Thanks.
One more question: If I create a note/comment/… on pdf file (on DTP or other app), on DT database I can’t preview that comment/note? (On pdf preview just appears the icon and to see what is inside I need to open the file in separate window, activate “select”, double-click, activate de “annotations” pane and finally see the note/comment. This is the normal behavior?)