bugGNU TeXmacs - Bugs: bug #59611, Copy to image/PDF does not work in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #59611: Copy to image/PDF does not work in macOS

Submitted by:  Basile <baudoly>
Submitted on:  Thu 03 Dec 2020 01:11:29 PM UTC  
 
Category:  MacOS port Priority:  5 - Normal
Item Group:  Error Status:  Need Info
Privacy:  Public Assigned to:  Philippe Joyez <pjoyez>
Originator Name:  Open/Closed:  Open
Release:  1.99.16 Release:  None
Fixed Release:  None Fixed Release: 
Keywords: 

( Jump to the original submission)

Sat 06 Mar 2021 06:55:12 PM UTC, comment #7: 

I have no idea why the texmacs places on the MacOs clipboard data of type com.trolltech.anytime.application--pdf. In the code, we declate a mimetype application/pdf (see qt_gui.cpp line ~ 1029). However, it's notorious that mimetypes are deficient and it's probably no wonder Apple replaced them by something else. So one needs to understand what they use instead of mimetypes and how one can implement that in Texmacs for MacOS, but I cannot help on that, sorry.

Philippe Joyez <pjoyez>
Project MemberIn charge of this item.
Wed 03 Mar 2021 10:49:18 AM UTC, comment #6: 

After copying from mathematica in PDF format, two "content types" are present in the clipboard:

  • com.adobe.pdf
  • Apple PDF pasteboard type

Both content types are linked to the same PDF file containing the actual data.

These same two types (along with additional ones) are also present when copying from Preview.app as PDF.

By contrast, the only type that is present in the clipboard after copying from TeXmacs as PDF is com.trolltech.anytime.application--pdf: it seems that this type is not recognized as PDF by the OS.

Basile <baudoly>
Tue 02 Mar 2021 04:11:14 PM UTC, comment #5: 

Basile: could you show us what information Mathematica provides (and which is lacking when we paste to the clipboard)?

Philippe: any ideas on how to fix this?

Joris van der Hoeven <vdhoeven>
Project Administrator
Mon 11 Jan 2021 09:40:33 PM UTC, comment #4: 

two additional observations, in macOS:

  • copying to png works normally
  • the clipboard content can be analyzed using the application ClipboardViewer.app (available from Apple). The result after attempting to copy to PDF from TeXmacs is shown in the attached image. There are far fewer types available that after a typical copy operation on a PDF document outside of TeXmacs — in particular, "Apple PDF pasteboard type" is missing.


Basile <baudoly>
Thu 10 Dec 2020 12:13:33 PM UTC, comment #3: 

Sure, in macOS you can 'copy to PDF' from Wolfram Mathematica and paste into Preview.app, it works. Apologies for messing up in my previous reply.

Basile <baudoly>
Thu 10 Dec 2020 12:11:40 PM UTC, comment #2: 

comment #1:

> Do you know of a situation where a macOS application B receives pdf data that was put on the Clipboard by an application A (not TeXmacs)?
>
> Maybe it is supposed to work in macOS or windows, but in linux with mate desktop none of the applications I use can do that,  AFAICT. If it is indeed known to work with some application B, we should try pasting texmacs-generated pdf in that app see if it works or not.

> If there are no known situations where such copy-pasting is supposed to work, that option should simply be removed.
>
>

Basile <baudoly>
Thu 10 Dec 2020 11:01:12 AM UTC, comment #1: 

Do you know of a situation where a macOS application B receives pdf data that was put on the Clipboard by an application A (not TeXmacs)?

Maybe it is supposed to work in macOS or windows, but in linux with mate desktop none of the applications I use can do that,  AFAICT. If it is indeed known to work with some application B, we should try pasting texmacs-generated pdf in that app see if it works or not.

If there are no known situations where such copy-pasting is supposed to work, that option should simply be removed.

Philippe Joyez <pjoyez>
Project MemberIn charge of this item.
Thu 03 Dec 2020 01:11:29 PM UTC, original submission:  

With the default image format set to PDF in Preferences > Convert > Image > TeXmacs->Image, if I select <math|a+b>, choose Edit > Copy to… > Image and then try to paste in Preview.app or Inkscape.app, then nothing happens: it looks like the clipboard is empty.

Not sure if the problem is limited to macOS.

Basile <baudoly>

 

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by pjoyez (Posted a comment)
  • -email is unavailable- added by baudoly (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-02 vdhoeven StatusNone => Need Info
        Assigned toNone => pjoyez
    2021-01-11 baudoly Attached File- => Added ClipboardAterCopyToPDF.png, #50702

    Back to the top


    Powered by Savane 3.5