Hi Albert,<br><br>            Yes, My code will not compile if png.h is not there.<br><br><br>Thanks<br>A Srinivas<br><br><div class="gmail_quote">On Fri, Feb 25, 2011 at 1:30 AM,  <span dir="ltr">&lt;<a href="mailto:poppler-request@lists.freedesktop.org">poppler-request@lists.freedesktop.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Send poppler mailing list submissions to<br>
        <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:poppler-request@lists.freedesktop.org">poppler-request@lists.freedesktop.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:poppler-owner@lists.freedesktop.org">poppler-owner@lists.freedesktop.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of poppler digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. poppler/GfxFont.cc (Albert Astals Cid)<br>
   2. Branch &#39;poppler-0.16&#39; - poppler/GfxFont.cc (Albert Astals Cid)<br>
   3. Re: Patch for embedding videos in to the pdf (Albert Astals Cid)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 24 Feb 2011 10:45:05 -0800 (PST)<br>
From: <a href="mailto:aacid@kemper.freedesktop.org">aacid@kemper.freedesktop.org</a> (Albert Astals Cid)<br>
Subject: [poppler] poppler/GfxFont.cc<br>
To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
Message-ID: &lt;<a href="mailto:20110224184505.24C9410050@kemper.freedesktop.org">20110224184505.24C9410050@kemper.freedesktop.org</a>&gt;<br>
<br>
 poppler/GfxFont.cc |    3 ++-<br>
 1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
New commits:<br>
commit 3590a2d38082fc705040cdb31bf0b22ff12dd3e4<br>
Author: Adrian Johnson &lt;<a href="mailto:ajohnson@redneon.com">ajohnson@redneon.com</a>&gt;<br>
Date:   Thu Feb 24 18:47:35 2011 +0000<br>
<br>
    Fix rendering of some substituted fonts<br>
<br>
    More info in bug 34522<br>
<br>
diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc<br>
index 0a165a6..d80208d 100644<br>
--- a/poppler/GfxFont.cc<br>
+++ b/poppler/GfxFont.cc<br>
@@ -23,6 +23,7 @@<br>
 // Copyright (C) 2009 Peter Kerzum &lt;<a href="mailto:kerzum@yandex-team.ru">kerzum@yandex-team.ru</a>&gt;<br>
 // Copyright (C) 2009, 2010 David Benjamin &lt;<a href="mailto:davidben@mit.edu">davidben@mit.edu</a>&gt;<br>
 // Copyright (C) 2011 Axel Strübing &lt;<a href="mailto:axel.struebing@freenet.de">axel.struebing@freenet.de</a>&gt;<br>
+// Copyright (C) 2011 Adrian Johnson &lt;<a href="mailto:ajohnson@redneon.com">ajohnson@redneon.com</a>&gt;<br>
 //<br>
 // To see a description of the changes please see the Changelog file that<br>
 // came with your tarball or type make ChangeLog if you are building from git<br>
@@ -1215,7 +1216,7 @@ Gushort *Gfx8BitFont::getCodeToGIDMap(FoFiTrueType *ff) {<br>
   cmap = 0;<br>
   useMacRoman = gFalse;<br>
   useUnicode = gFalse;<br>
-  if (hasEncoding) {<br>
+  if (hasEncoding || type == fontType1) {<br>
     if (usesMacRomanEnc &amp;&amp; macRomanCmap &gt;= 0) {<br>
       cmap = macRomanCmap;<br>
       useMacRoman = gTrue;<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 24 Feb 2011 10:45:39 -0800 (PST)<br>
From: <a href="mailto:aacid@kemper.freedesktop.org">aacid@kemper.freedesktop.org</a> (Albert Astals Cid)<br>
Subject: [poppler] Branch &#39;poppler-0.16&#39; - poppler/GfxFont.cc<br>
To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
Message-ID: &lt;<a href="mailto:20110224184539.A17CE10050@kemper.freedesktop.org">20110224184539.A17CE10050@kemper.freedesktop.org</a>&gt;<br>
<br>
 poppler/GfxFont.cc |    3 ++-<br>
 1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
New commits:<br>
commit 4808b5c42f742363b51624aa4b6d02e6e6d3a30c<br>
Author: Adrian Johnson &lt;<a href="mailto:ajohnson@redneon.com">ajohnson@redneon.com</a>&gt;<br>
Date:   Thu Feb 24 18:47:35 2011 +0000<br>
<br>
    Fix rendering of some substituted fonts<br>
<br>
    More info in bug 34522<br>
<br>
diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc<br>
index 0a165a6..d80208d 100644<br>
--- a/poppler/GfxFont.cc<br>
+++ b/poppler/GfxFont.cc<br>
@@ -23,6 +23,7 @@<br>
 // Copyright (C) 2009 Peter Kerzum &lt;<a href="mailto:kerzum@yandex-team.ru">kerzum@yandex-team.ru</a>&gt;<br>
 // Copyright (C) 2009, 2010 David Benjamin &lt;<a href="mailto:davidben@mit.edu">davidben@mit.edu</a>&gt;<br>
 // Copyright (C) 2011 Axel Strübing &lt;<a href="mailto:axel.struebing@freenet.de">axel.struebing@freenet.de</a>&gt;<br>
+// Copyright (C) 2011 Adrian Johnson &lt;<a href="mailto:ajohnson@redneon.com">ajohnson@redneon.com</a>&gt;<br>
 //<br>
 // To see a description of the changes please see the Changelog file that<br>
 // came with your tarball or type make ChangeLog if you are building from git<br>
@@ -1215,7 +1216,7 @@ Gushort *Gfx8BitFont::getCodeToGIDMap(FoFiTrueType *ff) {<br>
   cmap = 0;<br>
   useMacRoman = gFalse;<br>
   useUnicode = gFalse;<br>
-  if (hasEncoding) {<br>
+  if (hasEncoding || type == fontType1) {<br>
     if (usesMacRomanEnc &amp;&amp; macRomanCmap &gt;= 0) {<br>
       cmap = macRomanCmap;<br>
       useMacRoman = gTrue;<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 24 Feb 2011 18:52:58 +0000<br>
From: Albert Astals Cid &lt;<a href="mailto:aacid@kde.org">aacid@kde.org</a>&gt;<br>
Subject: Re: [poppler] Patch for embedding videos in to the pdf<br>
To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
Message-ID: &lt;<a href="mailto:201102241852.58531.aacid@kde.org">201102241852.58531.aacid@kde.org</a>&gt;<br>
Content-Type: Text/Plain;  charset=&quot;us-ascii&quot;<br>
<br>
A Dijous, 24 de febrer de 2011, srinivas adicherla va escriure:<br>
&gt; Hi Albert<br>
&gt;<br>
&gt;              Thank you for giving me tips.<br>
&gt;   I included #if defined(ENABLE_PNG)<br>
&gt;                  #include &quot;PNGWriter.h&quot;<br>
&gt;                  #endif<br>
&gt;<br>
&gt;   that is what in some places you were doing.<br>
<br>
Your code will not compile if png.h is not there, right?<br>
<br>
&gt;   About Object&#39;s freeing issue. It is not setting the value at all if we<br>
&gt; free it in the function.<br>
&gt;   I saw in other places also if we initialize the objects then they are not<br>
&gt; freeing, but if we get some value in to the objects<br>
&gt; usng dict.lookup(&quot;key&quot;, &amp;obj); then they are freeing it. This is what I<br>
&gt; found.<br>
<br>
Sorry, my bad both dictSet and arrayAdd do shallow copies of the objects so<br>
you don&#39;t need to free them.<br>
<br>
Albert<br>
<br>
&gt;<br>
&gt;<br>
&gt; So please give me update on this.<br>
&gt;<br>
&gt; Thank you<br>
&gt; A Srinivas<br>
&gt;<br>
&gt; On Wed, Feb 23, 2011 at 5:46 PM, &lt;poppler-<br>
<a href="mailto:request@lists.freedesktop.org">request@lists.freedesktop.org</a>&gt;wrote:<br>
&gt; &gt; Send poppler mailing list submissions to<br>
&gt; &gt;<br>
&gt; &gt;        <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
&gt; &gt;<br>
&gt; &gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt; &gt;<br>
&gt; &gt;        <a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br>
&gt; &gt;<br>
&gt; &gt; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt; &gt;<br>
&gt; &gt;        <a href="mailto:poppler-request@lists.freedesktop.org">poppler-request@lists.freedesktop.org</a><br>
&gt; &gt;<br>
&gt; &gt; You can reach the person managing the list at<br>
&gt; &gt;<br>
&gt; &gt;        <a href="mailto:poppler-owner@lists.freedesktop.org">poppler-owner@lists.freedesktop.org</a><br>
&gt; &gt;<br>
&gt; &gt; When replying, please edit your Subject line so it is more specific<br>
&gt; &gt; than &quot;Re: Contents of poppler digest...&quot;<br>
&gt; &gt;<br>
&gt; &gt; Today&#39;s Topics:<br>
&gt; &gt;   1. Re: Font substitution in Poppler (Albert Astals Cid)<br>
&gt; &gt;   2. Re: Patch for embedding videos in to the pdf. (srinivas adicherla)<br>
&gt; &gt;<br>
&gt; &gt; ----------------------------------------------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 1<br>
&gt; &gt; Date: Tue, 22 Feb 2011 20:23:44 +0000<br>
&gt; &gt; From: Albert Astals Cid &lt;<a href="mailto:aacid@kde.org">aacid@kde.org</a>&gt;<br>
&gt; &gt; Subject: Re: [poppler] Font substitution in Poppler<br>
&gt; &gt; To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
&gt; &gt; Message-ID: &lt;<a href="mailto:201102222023.44914.aacid@kde.org">201102222023.44914.aacid@kde.org</a>&gt;<br>
&gt; &gt; Content-Type: Text/Plain;  charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; A Dimarts, 22 de febrer de 2011, <a href="mailto:jose.aliste@gmail.com">jose.aliste@gmail.com</a> va escriure:<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; while reading GlobalParams.cc in poppler directory, I&#39;ve noticed that<br>
&gt; &gt; &gt; when substituting, we only take into account substitutions for a given<br>
&gt; &gt; &gt; font that are ttf or pfb. So I wondered  why is this so? and, what<br>
&gt; &gt; &gt; would be the path to implement support for otf substitutions?<br>
&gt; &gt;<br>
&gt; &gt; Before worrying about the substitution have you checked if a pdf with a<br>
&gt; &gt; otf font embedded renders correctly?<br>
&gt; &gt;<br>
&gt; &gt; Albert<br>
&gt; &gt;<br>
&gt; &gt; &gt; Greetings<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Jos?<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; poppler mailing list<br>
&gt; &gt; &gt; <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
&gt; &gt; &gt; <a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 2<br>
&gt; &gt; Date: Wed, 23 Feb 2011 17:46:52 +0530<br>
&gt; &gt; From: srinivas adicherla &lt;<a href="mailto:srinivas.adicherla@gmail.com">srinivas.adicherla@gmail.com</a>&gt;<br>
&gt; &gt; Subject: Re: [poppler] Patch for embedding videos in to the pdf.<br>
&gt; &gt; To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
&gt; &gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt;        &lt;<a href="mailto:AANLkTimtinmd__D762OhdiJQ0JAnDDzTi-rxq4XtZykp@mail.gmail.com">AANLkTimtinmd__D762OhdiJQ0JAnDDzTi-rxq4XtZykp@mail.gmail.com</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; Hi Albert<br>
&gt; &gt;<br>
&gt; &gt;          Thank you for your suggestions. Sorry it was long gap since you<br>
&gt; &gt;<br>
&gt; &gt; gave those suggestions. I was so busy after that.<br>
&gt; &gt;<br>
&gt; &gt; - about &quot;#include &lt;png.h&gt;&quot;. I don&#39;t know how to check for those in<br>
&gt; &gt; configure/cmake files.<br>
&gt; &gt; If any one can give me any ideas how to do, it will be really helpful. I<br>
&gt; &gt; just check for #ENABLE_PNG and including it. I don&#39;t know whether it is<br>
&gt; &gt; right or not.<br>
&gt; &gt;<br>
&gt; &gt; - Other things I used valgrind for memory leaks. Still in some places<br>
&gt; &gt; like &quot;object.initDict(xref)&quot; it is showing definitely leak some bytes.<br>
&gt; &gt;<br>
&gt; &gt;  How to overcome those things. Not only in my code still in poppler some<br>
&gt; &gt;<br>
&gt; &gt; places it is showing leaking memory for initDict(xref) or<br>
&gt; &gt; initArray(xref).<br>
&gt; &gt;<br>
&gt; &gt;  But we cannot free those objects explicitly in our code, if we do like<br>
&gt; &gt;<br>
&gt; &gt; that. If we delete like that that value for that dictionary key it is not<br>
&gt; &gt; setting.<br>
&gt; &gt;<br>
&gt; &gt; So is it fine?<br>
&gt; &gt;<br>
&gt; &gt; Please kindly give suggestios.<br>
&gt; &gt;<br>
&gt; &gt; Thank you all in advance.<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; A Srinivas<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Wed, Feb 16, 2011 at 1:30 AM, &lt;<a href="mailto:poppler-request@lists.freedesktop.org">poppler-request@lists.freedesktop.org</a><br>
&gt; &gt;<br>
&gt; &gt; &gt;wrote:<br>
&gt; &gt; &gt; Send poppler mailing list submissions to<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;        <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; To subscribe or unsubscribe via the World Wide Web, visit<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;        <a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; or, via email, send a message with subject or body &#39;help&#39; to<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;        <a href="mailto:poppler-request@lists.freedesktop.org">poppler-request@lists.freedesktop.org</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; You can reach the person managing the list at<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;        <a href="mailto:poppler-owner@lists.freedesktop.org">poppler-owner@lists.freedesktop.org</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; When replying, please edit your Subject line so it is more specific<br>
&gt; &gt; &gt; than &quot;Re: Contents of poppler digest...&quot;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Today&#39;s Topics:<br>
&gt; &gt; &gt;   1. Re: Patch for embedding videos in to the pdf. (Albert Astals Cid)<br>
&gt; &gt; &gt;   2. Re: pdf import in Inkscap using poppler_glib and<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;      poppler_cairo (Albert Astals Cid)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;   3. Re: Patch for embedding videos in to the pdf. (Albert Astals Cid)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; ----------------------------------------------------------------------<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Message: 1<br>
&gt; &gt; &gt; Date: Tue, 15 Feb 2011 19:13:09 +0000<br>
&gt; &gt; &gt; From: Albert Astals Cid &lt;<a href="mailto:aacid@kde.org">aacid@kde.org</a>&gt;<br>
&gt; &gt; &gt; Subject: Re: [poppler] Patch for embedding videos in to the pdf.<br>
&gt; &gt; &gt; To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
&gt; &gt; &gt; Message-ID: &lt;<a href="mailto:201102151913.10014.aacid@kde.org">201102151913.10014.aacid@kde.org</a>&gt;<br>
&gt; &gt; &gt; Content-Type: Text/Plain;  charset=&quot;us-ascii&quot;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; A Dimarts, 15 de febrer de 2011, srinivas adicherla va escriure:<br>
&gt; &gt; &gt; &gt; Hi all,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Hi<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;     I made a patch for embedding videos into the pdf file. I created<br>
&gt; &gt; &gt; &gt;     a<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Screen annotation, and add a Rendition action to it. For appearance I<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; took<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; the image from the user (only accepting png), later I will do for<br>
&gt; &gt;<br>
&gt; &gt; others<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; also. I tested opening the embedded pdf files using Adobe and Foxit<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Reader<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; it was successfully opened for me. I tried for swf and mpg files.<br>
&gt; &gt; &gt; &gt; I am asking the user to specify the image because there are lot of<br>
&gt; &gt;<br>
&gt; &gt; video<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; formats, so its time consuming for creating an image from the video<br>
&gt; &gt;<br>
&gt; &gt; frame<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; for all types. ( May be in the future i add that or anybody can help<br>
&gt; &gt; &gt; &gt; me<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; in<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; that).<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I added the same in bugzilla.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Bad idea, don&#39;t do this. Either do it here or in the bugzilla but not<br>
&gt; &gt; &gt; in both.<br>
&gt; &gt; &gt; In two places just makes more difficult to follow the dicussion.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Albert<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Please give me suggestions to make this successful.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Thanks in Advance.<br>
&gt; &gt; &gt; &gt; A Srinivas<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; ------------------------------<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Message: 2<br>
&gt; &gt; &gt; Date: Tue, 15 Feb 2011 19:23:42 +0000<br>
&gt; &gt; &gt; From: Albert Astals Cid &lt;<a href="mailto:aacid@kde.org">aacid@kde.org</a>&gt;<br>
&gt; &gt; &gt; Subject: Re: [poppler] pdf import in Inkscap using poppler_glib and<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;        poppler_cairo<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
&gt; &gt; &gt; Message-ID: &lt;<a href="mailto:201102151923.43633.aacid@kde.org">201102151923.43633.aacid@kde.org</a>&gt;<br>
&gt; &gt; &gt; Content-Type: Text/Plain;  charset=&quot;iso-8859-1&quot;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; A Dimarts, 15 de febrer de 2011, Pino Toscano va escriure:<br>
&gt; &gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Alle marted? 15 febbraio 2011, the Adib ha scritto:<br>
&gt; &gt; &gt; &gt; &gt; currently Inkscape uses poppler internal API to read in pdf files.<br>
&gt; &gt; &gt; &gt; &gt; Those API breaks/changes from time to time.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Now I try importing pdf via poppler cairo surface and those cairo<br>
&gt; &gt; &gt; &gt; &gt; surface as svg backend. So far that works.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; But I do not have any control over the process:<br>
&gt; &gt; &gt; &gt; &gt; - I can not set bitmap dpi<br>
&gt; &gt; &gt; &gt; &gt; - I can not specify if text stays text or convert to path<br>
&gt; &gt; &gt; &gt; &gt; etc.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Do you have any sugestions?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; What I proposed more than one year ago:<br>
&gt; &gt; &gt; &gt; <a href="http://sourceforge.net/mailarchive/message.php?msg_id=24162410" target="_blank">http://sourceforge.net/mailarchive/message.php?msg_id=24162410</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; That&#39;d work me too :D<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Also if your custom inkscape converter does not depend in inkscape i<br>
&gt; &gt; &gt; see<br>
&gt; &gt;<br>
&gt; &gt; no<br>
&gt; &gt;<br>
&gt; &gt; &gt; reason why we could not have it inside poppler too if you commit to<br>
&gt; &gt; &gt; maintaining it here (this way you&#39;d be much safer to API changes)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Albert<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; ------------------------------<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Message: 3<br>
&gt; &gt; &gt; Date: Tue, 15 Feb 2011 19:50:51 +0000<br>
&gt; &gt; &gt; From: Albert Astals Cid &lt;<a href="mailto:aacid@kde.org">aacid@kde.org</a>&gt;<br>
&gt; &gt; &gt; Subject: Re: [poppler] Patch for embedding videos in to the pdf.<br>
&gt; &gt; &gt; To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
&gt; &gt; &gt; Message-ID: &lt;<a href="mailto:201102151950.51464.aacid@kde.org">201102151950.51464.aacid@kde.org</a>&gt;<br>
&gt; &gt; &gt; Content-Type: Text/Plain;  charset=&quot;us-ascii&quot;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; A Dimarts, 15 de febrer de 2011, srinivas adicherla va escriure:<br>
&gt; &gt; &gt; &gt; Hi all,<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;     I made a patch for embedding videos into the pdf file. I created<br>
&gt; &gt; &gt; &gt;     a<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Screen annotation, and add a Rendition action to it. For appearance I<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; took<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; the image from the user (only accepting png), later I will do for<br>
&gt; &gt;<br>
&gt; &gt; others<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; also. I tested opening the embedded pdf files using Adobe and Foxit<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Reader<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; it was successfully opened for me. I tried for swf and mpg files.<br>
&gt; &gt; &gt; &gt; I am asking the user to specify the image because there are lot of<br>
&gt; &gt;<br>
&gt; &gt; video<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; formats, so its time consuming for creating an image from the video<br>
&gt; &gt;<br>
&gt; &gt; frame<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt; for all types. ( May be in the future i add that or anybody can help<br>
&gt; &gt; &gt; &gt; me<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; in<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; that).<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I added the same in bugzilla.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Please give me suggestions to make this successful.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Some quick things:<br>
&gt; &gt; &gt;  * You use png.h unconditionally that is not going to work, you need to<br>
&gt; &gt;<br>
&gt; &gt; use<br>
&gt; &gt;<br>
&gt; &gt; &gt; the proper defines to see if configure/cmake found it.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;  * FILE *f;; &lt;- extra ;<br>
&gt; &gt; &gt;  * png_structp read_png;; &lt;- again<br>
&gt; &gt; &gt;  * error(-1, &quot;The file could not be recognized as a PNG file.&quot;); &lt;--<br>
&gt; &gt; &gt;  You<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; don&#39;t<br>
&gt; &gt; &gt; close f here<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;  * You don&#39;t delete imgbuf<br>
&gt; &gt; &gt;  * Wihtout having any idea png_create_info_struct seems like you should<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; call<br>
&gt; &gt; &gt; destroy afterwards in the structure it returns<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;  * After<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;   MemStream *imgStream = load_from_png (img_file, &amp;imgXObj, xrefA);<br>
&gt; &gt; &gt;   if (!imgStream)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;     return gFalse;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;   you need to free all the Obj you&#39;ve allocated<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;  * I&#39;m pretty sure<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;   annotObj.dictSet(&quot;T&quot;, obj.initString(new GooString(video_name)));<br>
&gt; &gt; &gt;   annotObj.dictSet(&quot;Contents&quot;, obj.initString(new<br>
&gt; &gt;<br>
&gt; &gt; GooString(video_name)));<br>
&gt; &gt;<br>
&gt; &gt; &gt;   annotObj.dictSet(&quot;F&quot;, obj.initInt(4));<br>
&gt; &gt; &gt;   is leaking memory as Object is not supposed to be reused without<br>
&gt; &gt;<br>
&gt; &gt; freeing<br>
&gt; &gt;<br>
&gt; &gt; &gt; it<br>
&gt; &gt; &gt; first, please use valgrind to detect leaks in your code<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Albert<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Thanks in Advance.<br>
&gt; &gt; &gt; &gt; A Srinivas<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; ------------------------------<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; poppler mailing list<br>
&gt; &gt; &gt; <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
&gt; &gt; &gt; <a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; End of poppler Digest, Vol 72, Issue 21<br>
&gt; &gt; &gt; ***************************************<br>
&gt; &gt;<br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; An HTML attachment was scrubbed...<br>
&gt; &gt; URL: &lt;<br>
&gt; &gt; <a href="http://lists.freedesktop.org/archives/poppler/attachments/20110223/5ee0f3" target="_blank">http://lists.freedesktop.org/archives/poppler/attachments/20110223/5ee0f3</a><br>
&gt; &gt; 1c/attachment.html<br>
&gt; &gt;<br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; A non-text attachment was scrubbed...<br>
&gt; &gt; Name: srinivas_video_embedd.patch<br>
&gt; &gt; Type: text/x-patch<br>
&gt; &gt; Size: 11746 bytes<br>
&gt; &gt; Desc: not available<br>
&gt; &gt; URL: &lt;<br>
&gt; &gt; <a href="http://lists.freedesktop.org/archives/poppler/attachments/20110223/5ee0f3" target="_blank">http://lists.freedesktop.org/archives/poppler/attachments/20110223/5ee0f3</a><br>
&gt; &gt; 1c/attachment.bin<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; poppler mailing list<br>
&gt; &gt; <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
&gt; &gt; <a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; End of poppler Digest, Vol 72, Issue 29<br>
&gt; &gt; ***************************************<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
poppler mailing list<br>
<a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank">http://lists.freedesktop.org/mailman/listinfo/poppler</a><br>
<br>
<br>
End of poppler Digest, Vol 72, Issue 32<br>
***************************************<br>
</blockquote></div><br>