<div dir="ltr"><div>Wojtek,</div>Don&#39;t forget that Ipe stores its own extra data in PDF files, in order that they can be opened again by Ipe. From the manual at <a href="http://ipe.otfried.org/manual/manual_2.html">http://ipe.otfried.org/manual/manual_2.html</a>:<div>&quot;[PDF] files created by Ipe contain a special hidden stream that describes the Ipe objects. (So if you edit your Ipe-generated PDF file in a different program such as Adobe Acrobat, Ipe will not be able to read the file again afterwards.)&quot;</div><div><br></div><div>I don&#39;t know if that accounts for all the size difference you&#39;re seeing, but you can test it by opening and saving the PDF with some other program. If that takes care of the size difference, maybe you could add a step in your script where some other program reads and saves the PDF?</div><div><br></div><div>-- Nathaniel</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 4, 2018 at 12:41 PM, Wojciech Zabolotny via Ipe-discuss <span dir="ltr">&lt;<a href="mailto:ipe-discuss@lists.science.uu.nl" target="_blank">ipe-discuss@lists.science.uu.nl</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have noticed, that my script exports huge PDF files. I can get much<br>
smaller PDFs, when I use GUI and:<br>
1. Set the desired View<br>
2. Export it to EPS<br>
3. Run &quot;epstopdf&quot; to convert EPS to PDF.<br>
<br>
Unfortunately, exportView does not support &quot;eps&quot; format. It is<br>
obvious, because the source code contains:<br>
<br>
bool Document::exportView(const char *fname, TFormat format, uint flags,<br>
                          int pno, int vno) const<br>
{<br>
  if (format != EPdf)<br>
    return false;<br>
<br>
GUI does something different:<br>
<br>
function MODEL:action_export_eps()<br>
[...]<br>
    self.ui:renderPage(self.doc, self.pno, self.vno,<br>
                       &quot;eps&quot;, s, 1.0, false, false)<br>
<br>
Unfortunately, the ui and its renderPage method seems to be not<br>
available for ipelets...<br>
Is it possible to efficiently export views from ipelet?<br>
<br>
TIA &amp; Regards,<br>
Wojtek<br>
<span class="im HOEnZb"><br>
2018-05-13 22:42 GMT+02:00 Wojciech Zabolotny &lt;<a href="mailto:wzab01@gmail.com">wzab01@gmail.com</a>&gt;:<br>
&gt; The first version of my script does not properly export LaTeX objects.<br>
&gt; It is necessary to add doc:runLatex right after loading of the IPE drawing:<br>
&gt;<br>
&gt; doc = ipe.Document(fname)<br>
&gt; doc:runLatex()<br>
&gt;<br>
&gt; After that modification, LaTeX equations and texts are rendered correctly.<br>
&gt; --<br>
&gt; Regards,<br>
&gt; Wojtek<br>
<br>
<br>
<br>
</span><span class="HOEnZb"><font color="#888888">-- <br>
Wojciech M. Zabołotny<br>
My GPG/PGP keys:<br>
standard: 8192R/FE58A848 (0720 9430 85DB 7CCD F4C5  5F1E 5107 91FB FE58 A848)<br>
confidential: 16384R/C76D2FB0 (C4E7 9597 CF22 7B5D 28BF  4656 FED7<br>
A63F C76D 2FB0)<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Ipe-discuss mailing list<br>
<a href="mailto:Ipe-discuss@lists.science.uu.nl">Ipe-discuss@lists.science.uu.<wbr>nl</a><br>
<a href="https://mailman.science.uu.nl/mailman/listinfo/ipe-discuss" rel="noreferrer" target="_blank">https://mailman.science.uu.nl/<wbr>mailman/listinfo/ipe-discuss</a><br>
</div></div></blockquote></div><br></div>