<div dir="ltr"><div>Thanks! I'm not super familiar with Lua programming. Is there any way I could persuade you to turn this command-line procedure into an Ipelet? Presumably it would have the label "Export to a flattened PDF", with description like "Exports the IPE drawing or presentation to a PDF file that includes only marked pages and views, defaulting to the last view on each page if no views are marked." Then it could simply open a file dialog box to save a PDF using the markedview option.</div><div><br></div><div>Jacob<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 19, 2023 at 8:01 AM Otfried Cheong via Ipe-discuss <<a href="mailto:ipe-discuss@lists.science.uu.nl">ipe-discuss@lists.science.uu.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Mar 18, 2023, at 23:07, Jacob Barandes wrote:<br>
> This is excellent. It works great. Thanks to you both.<br>
><br>
> Just a small correction, Otfried – in your command-line statement, I <br>
> think you meant to use a .ipe extension on the first file:<br>
><br>
> ipetoipe -pdf -markedview presentation.ipe handouts.pdf<br>
<br>
Well, that would depend how you store your presentation in the first place.  I always use PDF format, so for me "presentation.pdf" would have been correct.<br>
<br>
Cheers,<br>
  Otfried<br>
<br>
ps. Has anyone used that ipeweed script recently?  You would need a setup where the libipelua library is actually installed in such a way that the lua interpreter can find it under the name "ipe" - this certainly does not happen automatically.<br>
<br>
I would rather run this as an Ipe script, using "ipescript ipeweed infile outfile".  To do that, the script needs to be saved as "ipeweed.lua" in (e.g.) ~/.ipe/scripts, and the first five lines need to be replaced by<br>
```<br>
local inname = argv[1]<br>
local outname = argv[2]<br>
```<br>
_______________________________________________<br>
Ipe-discuss mailing list<br>
<a href="mailto:Ipe-discuss@lists.science.uu.nl" target="_blank">Ipe-discuss@lists.science.uu.nl</a><br>
<a href="https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss" rel="noreferrer" target="_blank">https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss</a><br>
</blockquote></div>