Skip to content

Error pasting SVGs #1

@bkgmc

Description

@bkgmc

Hi,
thank you very much for your tools.
Unfortunately, recently I ran into a small problem. Maybe you can help me out?
After compiling the GUI as-is I could not paste SVGs into Keynote (PDF works, though).
Apple's Clipboardviewer's TSPNativeMetadata showed a Version 11.1, but my Keynote is 11.2.
So I compiled proto-dump and ran get-protos.sh and dump-mappings.sh, then I edited generateMetadataMessageList like so:

std::vector<MessageWrapper *> generateMetadataMessageList() {
    // generate TSP.PasteboardMetadata
    auto* pasteboardMetadata = new TSP::PasteboardMetadata();
    pasteboardMetadata->add_version(11);
    pasteboardMetadata->add_version(2);
    //pasteboardMetadata->add_version(2);
    pasteboardMetadata->set_allocated_app_name(new std::string("com.apple.Keynote 11.2"));
    pasteboardMetadata->add_read_version(11);
    pasteboardMetadata->add_read_version(2);
    //pasteboardMetadata->add_read_version(0);

    return std::vector<MessageWrapper *> {createMessageWrapper(pasteboardMetadata, 11007, 52)};
}

After recompiling the library and the GUI, I still could not paste SVGs into Keynote.
I'd be happy if you could give me a hint that points me in the right direction to fix my mistakes...

Thanks and cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions