Thanks so much, Christiaan, that does work!
Is there perhaps a parallel way to accomplish this when using skimpdf? So that
I don’t need to have the file open in Skim …
> On Jun 13, 2021, at 2:20 PM, Christiaan Hofman <cmhof...@gmail.com> wrote:
>
>> On 13 Jun 2021, at 22:26, Jan David Hauck via Skim-app-users
>> <skim-app-users@lists.sourceforge.net> wrote:
>>
>> When I open a file in Skim that has been annotated in a program other than
>> Skim and “convert notes” to the Skim format, for those annotations that are
>> associated with text in the PDF (such as Highlights, Underlines, or
>> Strikethroughs), Skim usually reads the text and saves it as note content
>> (which I can then delete, edit, modify or do whatever I please with in Skim).
>>
>> Now, when I export the file back to a PDF “with embedded notes,” Skim
>> exports these “contents” of highlights or underlines as notes associated
>> with highlights (not sure if that’s the right terminology in PDFKit
>> language) – they show up in some other PDF programs as a kind of anchored
>> notes associated with a stretch of highlight/underline etc.
>> (This is the case both when I export through the menu with the file open in
>> Skim but also when I use the skimpdf tool with `skimpdf embed …`)
>>
>> Is there a way (either in Skim or skimpdf) to delete/omit those “contents”
>> from highlights upon (or before) exporting to PDF with embedded notes?
>>
>> The particular use case is importing/exporting to Skim from/to iPad. I
>> rarely modify the contents of highlights, preferring to use separate
>> anchored or text notes for adding text to a PDF.
>> It would therefore be nice to have an option to delete the anchored notes
>> from highlights so that the page isn’t cluttered with anchored notes on the
>> iPad.
>
> No, there is no such option. You could just delete the contents of the
> (highlight) notes from the Skim notes, before embedding. You may perhaps use
> an AppleScript to help with that. For instance:
>
> tell frontdocument ofapplication"Skim"
> repeatwithaNoteinnotes
> iftypeofaNoteisin{highlight note,underline note,strike out note}then
> settextofaNoteto ""
> endif
> endrepeat
> endtell
>
> Christiaan
_______________________________________________
Skim-app-users mailing list
Skim-app-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users