Export graphics pdf from Edit menu
Mike German
I am using a windows 10 pc with latest Igor version. I have tried to export graph as a pdf using Edit>Export Graphics.. ,selecting the pdf option and clicking OK. But where is the pdf? There are no new pdfs saved to my user discs.
I know the graphic can be Saved as a pdf ... but what is the export pdf meant to do?
August 2, 2023 at 02:23 am - Permalink
It's saved to the clipboard:
DisplayHelpTopic "Exporting Graphics (Windows)"
Use the file menu save graphics to save to disk.
August 2, 2023 at 03:02 am - Permalink
Yes, this is quite a misnomer, or at least it is in the wrong place, and has lead to a lot of confusion. I personally find this should be renamed to 'Set up Export for Clipboard' or something. As Tony wrote, this menu entry only changes the settings for 'export' via clipboard, i.e., if you select Edit => Copy or use the respective keyboard shortcut. Depending on the program you want to paste this in, support for different formats depends on your luck. For example, for pasting in MS Office products SVG (and sometimes EMF) works quite well.
Note that the correct command for saving as a PDF from within Igor is "Save Graphics" in the file menu, not to be confused with "Save Graph Copy", which is the function to save the graph's data as an Igor experiment file.
August 2, 2023 at 03:26 am - Permalink
In reply to Yes, this is quite a… by chozo
I am quite OK with the "Save Graphic" bit.
I had also looked at the Help Files > Exporting Graphics (windows) and neither subtopics >"Pdf Format" nor "Exporting Graphics Via the Cipboard (windows)" doesn't explain what happens to pdfs
However, when I check my clipboard after using Edit > Export Graphic> pdf nothing has been added ....
So, I agree - the option is in the wrong place - it appears to do nothing.
August 2, 2023 at 03:50 am - Permalink
With Igor 9 / Mac the edit - export graphics dialog loads the graphics into the clipboard. I tested by pasting png and quartz pdf into powerpoint, and the pdf image is clearly vector while the png is bitmap.
August 2, 2023 at 06:36 am - Permalink
With Igor 9 / Windows, the dialog works the same way: it both puts an image in the clipboard and the format becomes the default action on Edit->Copy for a window.
You can verify this by choosing Edit->Export Graphics when a graph is top-most, setting the PDF format, and clicking Okay.
Then use Misc->Pictures and click the Load button's dropdown menu to show the format(s) on the clipboard, one of which will be PDF:
August 2, 2023 at 10:24 am - Permalink
OK, interesting. I didn't know that. It would be nice to improve communication to the user here. Maybe add a line to the top of the panel: "Export Graphics to Clipboard and Save Settings"
August 2, 2023 at 08:18 pm - Permalink
In reply to With Igor 9 / Windows, the… by JimProuty
So, export doen't mean export outside of Igor Pro. Nothing is copied, for example, to windows clipboard for extenal-to-igor use. I have found the 'pdf image' can be pasted to notebook. Is there an advantage in taking this route? I think the application of this "internal-export" is probably not something I could usefully use .... unless someone says otherwise.
August 4, 2023 at 02:14 am - Permalink
Something does not seem to work for you then. Export Graphics does export to the clipboard, so the contents can be pasted to whatever program you like. I personally use this functionality exclusively to prepare documents and presentations. Have you tried setting this to a simple format like bmp and then pasting to another application. I think PDF copy and paste may not be supported by too many programs.
August 4, 2023 at 02:46 am - Permalink
OK. Sorry I was not explicit. Export graphics such as png, bmp etc all work fine and I use this all the time. But, on my windows 10 Pro at least, the export pdf option does not put anything in the clipboard. ( I just checked again with <WIN> <V> buttons)
August 4, 2023 at 03:06 am - Permalink
In reply to OK. Sorry I was not explicit… by Mike German
It does (or at least it should), but PDF is not a commonly supported clipboard format on Windows, so the application you are using to view the clipboard's contents may ignore PDF data.
If you wish to investigate this, I suggest you download InsideClipboard (https://www.nirsoft.net/utils/inside_clipboard.html) which will let you view the raw contents on the clipboard and see all clipboard formats. Note that just because a format is on the clipboard doesn't mean you can paste using that format into any given application. When you paste, an application will look for one or more clipboard formats that it supports and most applications don't give you any control over which format is selected.
August 14, 2023 at 07:46 am - Permalink
In reply to Mike German wrote: OK… by aclight
Ah ha! yes I see it now ... both the item in the clipboard and what postings have described.. I had been using Windows logo key + V which does not show the detail.
I have not found any PC apps that recognise this format. Are there any that will allow it to be opened/saved/used as a pdf file?
August 16, 2023 at 09:40 am - Permalink
In reply to Ah ha! yes I see it now … by Mike German
I don't recall ever discovering a Windows application that accepts PDF data from the clipboard other than Igor, but I haven't tried too many applications. Something like Illustrator or another vector illustration program might accept PDF data.
Note that you can also export from Igor as SVG, which is accepted by some applications such as the Office suite (at least newish versions). Igor uses Qt's SVG library which, to be honest, is not great, and it does not support the full SVG spec. Simple graphs typically look fine when exported as SVG, but more complicated graphs or graphs that use some of the uncommon trace appearance settings might not look right when exported as SVG.
August 17, 2023 at 07:27 am - Permalink