Hi Albert<br><br> Thank you for giving me tips.<br> I included #if defined(ENABLE_PNG) <br> #include "PNGWriter.h"<br> #endif<br><br> that is what in some places you were doing.<br>
<br><br> About Object's freeing issue. It is not setting the value at all if we free it in the function.<br> I saw in other places also if we initialize the objects then they are not freeing, but if we get some value in to the objects <br>
usng dict.lookup("key", &obj); then they are freeing it. This is what I found.<br><br><br>So please give me update on this.<br><br>Thank you<br>A Srinivas<br><br><div class="gmail_quote">On Wed, Feb 23, 2011 at 5:46 PM, <span dir="ltr"><<a href="mailto:poppler-request@lists.freedesktop.org">poppler-request@lists.freedesktop.org</a>></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 'help' 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 "Re: Contents of poppler digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Font substitution in Poppler (Albert Astals Cid)<br>
2. Re: Patch for embedding videos in to the pdf. (srinivas adicherla)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 22 Feb 2011 20:23:44 +0000<br>
From: Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>><br>
Subject: Re: [poppler] Font substitution in Poppler<br>
To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
Message-ID: <<a href="mailto:201102222023.44914.aacid@kde.org">201102222023.44914.aacid@kde.org</a>><br>
Content-Type: Text/Plain; charset="iso-8859-1"<br>
<br>
A Dimarts, 22 de febrer de 2011, <a href="mailto:jose.aliste@gmail.com">jose.aliste@gmail.com</a> va escriure:<br>
> Hi,<br>
><br>
> while reading GlobalParams.cc in poppler directory, I've noticed that<br>
> when substituting, we only take into account substitutions for a given<br>
> font that are ttf or pfb. So I wondered why is this so? and, what<br>
> would be the path to implement support for otf substitutions?<br>
<br>
Before worrying about the substitution have you checked if a pdf with a otf<br>
font embedded renders correctly?<br>
<br>
Albert<br>
<br>
><br>
><br>
> Greetings<br>
><br>
> Jos?<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>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 23 Feb 2011 17:46:52 +0530<br>
From: srinivas adicherla <<a href="mailto:srinivas.adicherla@gmail.com">srinivas.adicherla@gmail.com</a>><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:<br>
<<a href="mailto:AANLkTimtinmd__D762OhdiJQ0JAnDDzTi-rxq4XtZykp@mail.gmail.com">AANLkTimtinmd__D762OhdiJQ0JAnDDzTi-rxq4XtZykp@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hi Albert<br>
<br>
Thank you for your suggestions. Sorry it was long gap since you<br>
gave those suggestions. I was so busy after that.<br>
<br>
- about "#include <png.h>". I don't know how to check for those in<br>
configure/cmake files.<br>
If any one can give me any ideas how to do, it will be really helpful. I<br>
just check for #ENABLE_PNG and including it. I don't know whether it is<br>
right or not.<br>
<br>
- Other things I used valgrind for memory leaks. Still in some places like<br>
"object.initDict(xref)" it is showing definitely leak some bytes.<br>
How to overcome those things. Not only in my code still in poppler some<br>
places it is showing leaking memory for initDict(xref) or initArray(xref).<br>
But we cannot free those objects explicitly in our code, if we do like<br>
that. If we delete like that that value for that dictionary key it is not<br>
setting.<br>
<br>
So is it fine?<br>
<br>
Please kindly give suggestios.<br>
<br>
Thank you all in advance.<br>
<br>
--<br>
A Srinivas<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Wed, Feb 16, 2011 at 1:30 AM, <<a href="mailto:poppler-request@lists.freedesktop.org">poppler-request@lists.freedesktop.org</a>>wrote:<br>
<br>
> 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 'help' 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 "Re: Contents of poppler digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
> 1. Re: Patch for embedding videos in to the pdf. (Albert Astals Cid)<br>
> 2. Re: pdf import in Inkscap using poppler_glib and<br>
> poppler_cairo (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: Tue, 15 Feb 2011 19:13:09 +0000<br>
> From: Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>><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: <<a href="mailto:201102151913.10014.aacid@kde.org">201102151913.10014.aacid@kde.org</a>><br>
> Content-Type: Text/Plain; charset="us-ascii"<br>
><br>
> A Dimarts, 15 de febrer de 2011, srinivas adicherla va escriure:<br>
> > Hi all,<br>
><br>
> Hi<br>
><br>
> ><br>
> > I made a patch for embedding videos into the pdf file. I created a<br>
> > Screen annotation, and add a Rendition action to it. For appearance I<br>
> took<br>
> > the image from the user (only accepting png), later I will do for others<br>
> > also. I tested opening the embedded pdf files using Adobe and Foxit<br>
> Reader<br>
> > it was successfully opened for me. I tried for swf and mpg files.<br>
> > I am asking the user to specify the image because there are lot of video<br>
> > formats, so its time consuming for creating an image from the video frame<br>
> > for all types. ( May be in the future i add that or anybody can help me<br>
> in<br>
> > that).<br>
> ><br>
> > I added the same in bugzilla.<br>
><br>
> Bad idea, don't do this. Either do it here or in the bugzilla but not in<br>
> both.<br>
> In two places just makes more difficult to follow the dicussion.<br>
><br>
> Albert<br>
><br>
> ><br>
> > Please give me suggestions to make this successful.<br>
> ><br>
> > Thanks in Advance.<br>
> > A Srinivas<br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 2<br>
> Date: Tue, 15 Feb 2011 19:23:42 +0000<br>
> From: Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>><br>
> Subject: Re: [poppler] pdf import in Inkscap using poppler_glib and<br>
> poppler_cairo<br>
> To: <a href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a><br>
> Message-ID: <<a href="mailto:201102151923.43633.aacid@kde.org">201102151923.43633.aacid@kde.org</a>><br>
> Content-Type: Text/Plain; charset="iso-8859-1"<br>
><br>
> A Dimarts, 15 de febrer de 2011, Pino Toscano va escriure:<br>
> > Hi,<br>
> ><br>
> > Alle marted? 15 febbraio 2011, the Adib ha scritto:<br>
> > > currently Inkscape uses poppler internal API to read in pdf files.<br>
> > > Those API breaks/changes from time to time.<br>
> > ><br>
> > > Now I try importing pdf via poppler cairo surface and those cairo<br>
> > > surface as svg backend. So far that works.<br>
> > ><br>
> > > But I do not have any control over the process:<br>
> > > - I can not set bitmap dpi<br>
> > > - I can not specify if text stays text or convert to path<br>
> > > etc.<br>
> > ><br>
> > > Do you have any sugestions?<br>
> ><br>
> > What I proposed more than one year ago:<br>
> > <a href="http://sourceforge.net/mailarchive/message.php?msg_id=24162410" target="_blank">http://sourceforge.net/mailarchive/message.php?msg_id=24162410</a><br>
><br>
> That'd work me too :D<br>
><br>
> Also if your custom inkscape converter does not depend in inkscape i see no<br>
> reason why we could not have it inside poppler too if you commit to<br>
> maintaining it here (this way you'd be much safer to API changes)<br>
><br>
> Albert<br>
><br>
><br>
> ------------------------------<br>
><br>
> Message: 3<br>
> Date: Tue, 15 Feb 2011 19:50:51 +0000<br>
> From: Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>><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: <<a href="mailto:201102151950.51464.aacid@kde.org">201102151950.51464.aacid@kde.org</a>><br>
> Content-Type: Text/Plain; charset="us-ascii"<br>
><br>
> A Dimarts, 15 de febrer de 2011, srinivas adicherla va escriure:<br>
> > Hi all,<br>
> ><br>
> > I made a patch for embedding videos into the pdf file. I created a<br>
> > Screen annotation, and add a Rendition action to it. For appearance I<br>
> took<br>
> > the image from the user (only accepting png), later I will do for others<br>
> > also. I tested opening the embedded pdf files using Adobe and Foxit<br>
> Reader<br>
> > it was successfully opened for me. I tried for swf and mpg files.<br>
> > I am asking the user to specify the image because there are lot of video<br>
> > formats, so its time consuming for creating an image from the video frame<br>
> > for all types. ( May be in the future i add that or anybody can help me<br>
> in<br>
> > that).<br>
> ><br>
> > I added the same in bugzilla.<br>
> ><br>
> > Please give me suggestions to make this successful.<br>
><br>
> Some quick things:<br>
> * You use png.h unconditionally that is not going to work, you need to use<br>
> the proper defines to see if configure/cmake found it.<br>
> * FILE *f;; <- extra ;<br>
> * png_structp read_png;; <- again<br>
> * error(-1, "The file could not be recognized as a PNG file."); <-- You<br>
> don't<br>
> close f here<br>
> * You don't delete imgbuf<br>
> * Wihtout having any idea png_create_info_struct seems like you should<br>
> call<br>
> destroy afterwards in the structure it returns<br>
> * After<br>
> MemStream *imgStream = load_from_png (img_file, &imgXObj, xrefA);<br>
> if (!imgStream)<br>
> return gFalse;<br>
> you need to free all the Obj you've allocated<br>
> * I'm pretty sure<br>
> annotObj.dictSet("T", obj.initString(new GooString(video_name)));<br>
> annotObj.dictSet("Contents", obj.initString(new GooString(video_name)));<br>
> annotObj.dictSet("F", obj.initInt(4));<br>
> is leaking memory as Object is not supposed to be reused without freeing<br>
> it<br>
> first, please use valgrind to detect leaks in your code<br>
><br>
> Albert<br>
><br>
> ><br>
> > Thanks in Advance.<br>
> > A Srinivas<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 21<br>
> ***************************************<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.freedesktop.org/archives/poppler/attachments/20110223/5ee0f31c/attachment.html" target="_blank">http://lists.freedesktop.org/archives/poppler/attachments/20110223/5ee0f31c/attachment.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: srinivas_video_embedd.patch<br>
Type: text/x-patch<br>
Size: 11746 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.freedesktop.org/archives/poppler/attachments/20110223/5ee0f31c/attachment.bin" target="_blank">http://lists.freedesktop.org/archives/poppler/attachments/20110223/5ee0f31c/attachment.bin</a>><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 29<br>
***************************************<br>
</blockquote></div><br>