Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing figures verbatim #25

Closed
ederag opened this issue Nov 15, 2015 · 4 comments
Closed

Importing figures verbatim #25

ederag opened this issue Nov 15, 2015 · 4 comments

Comments

@ederag
Copy link

ederag commented Nov 15, 2015

It would be useful to have a "verbatim import" feature in ipe. That is, importing a png or pdf, so that it becomes inserted in the ipe file, without modification. (Like xfig or pdftex)
This would fix two problems:

  1. The ipe pdf is sometimes much larger (e.g. 35 Mb) than the imported png image (e.g. 1.4 Mb)
  2. importing more than one pdf inside an ipe figure.
@otfried
Copy link
Owner

otfried commented Nov 17, 2015

The PDF file format does not allow a "verbatim import". It is simply not possible to include a PDF file verbatim inside another PDF file.

I've worked on the \includegraphics code in pdftex myself, it is quite complicated. Making this possible inside Ipe is on my to-do list, but it will take time.

Problem #1 has been fixed in 7.1.9.

Problem #2: You can convert each PDF to Ipe separately, and then use copy and paste in Ipe to combine them.

@otfried otfried closed this as completed Nov 17, 2015
@ederag
Copy link
Author

ederag commented Nov 17, 2015

  1. Confirmed: with 7.1.9 the pdf shrinks from to 35Mb to 1.5Mb (the png size). Great, congratulations !
    I'm trying to upgrade the opensuse package to this version.

  2. copy/paste of an ipe pdf works fine too, thanks for the tip.

  3. What would be really nice, would be a reload function (like in xfig), so that if the source of one imported figure was changed, it could be easily reimported, without having to change all the attributes (like size) again. In libreoffice impress, when a single figure is already selected, the imported one gets all the attributes of the selected one. Is there a similar feature I overlooked ?
    Anyway, thanks a lot for ipe, the snapping mechanism is smart !

@otfried
Copy link
Owner

otfried commented Sep 24, 2016

Starting from 7.2.5, you can now use \includegraphics to import external PDF files.

@ederag
Copy link
Author

ederag commented Sep 28, 2016

I just had to add \usepackage{graphicx} in Edit>Document properties>preamble.
And use an absolute path for the file, for it to be found.
For the huge (9.7MB) pdf, the performance drops dramatically (more than 10 seconds between refresh).
But for small files it is great, thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants