[poppler] Creating PDF with poppler ?
Thomas Freitag
Thomas.Freitag at kabelmail.de
Sun Sep 18 01:04:14 PDT 2011
Am 17.09.2011 17:21, schrieb Albert Astals Cid:
> A Dissabte, 17 de setembre de 2011, Thomas Freitag vàreu escriure:
>> Sorry, Albert!
>>
>> Your previous mail reaches me during my vacation. After I started
>> reading my mails again, I had tons of poppler mails in my mailbox, so I
>> decided to move them into an archive to read them later, when I have the
>> time to do it. That's why I missed it (and even that You commit my patch
>>
>> :-) )
>>
>> I now quickly created two man pages. Are they sufficient and more
>> important understandable?
> Hmm, reading the behaviour of pdfextract, i see that it differs a bit from
> e.g. pdftoppm in which you do not need to define the %d and the page numbers
> are appended automatically.
>
> I see that your way is a bit more powerful, since it allows to have the number
> at the beginning.
>
> What I would like you to do is:
> a) Complain if no %d is in the pattern, e.g. right now
> ./pdfextract -f 1 -l 2 input.pdf ouput
> Only extracts page 2 (page 1 is probably extracted and then overwritten)
> b) If no %d is in the pattern, just append the page number
>
> I am fine with any of them.
I decided to implement a) with one small change: if only one page should
be extracted pdfextract doesn't complain if %d is missing, i.e.
../pdfextract -f 1 -l 1 input.pdf firstpage.pdf
is still possible.
I attach a complete patch containing the man pages, too, and also the
changes in Makefile.am so that the man pages are installed automatically.
Thomas
>
> The manpages look fine, but i'll hold commiting until you decide if you want
> to implement a) or b)
>
> Do you think you can do that before the 26th that is when we are releasing
> poppler 0.18.0?
>
> Albert
>
>
>> Thomas
>>
>> Am 16.09.2011 15:50, schrieb Albert Astals Cid:
>>> Thomas? Any chance we can get those man pages soon-ish?
>>>
>>> Albert
>>>
>>> A Dilluns, 29 d'agost de 2011, Albert Astals Cid vàreu escriure:
>>>> A Dijous, 31 de març de 2011, Thomas Freitag vàreu escriure:
>>>>> On 25.03.2011 21:42, Albert Astals Cid wrote:
>>>>>> A Dilluns, 20 de desembre de 2010, Thomas Freitag va escriure:
>>>>>>> Hi all!
>>>>>> Hi
>>>>> Hi again!
>>>>>
>>>>> Sorry for this late but therefore now more correct answer. As you
>>>>> probably know I was very busy implementing overprint, and after that
>>>>> I
>>>>> took some "free poppler" days!
>>>>>
>>>>>>> How I promised long time ago, here now a patch for the poppler
>>>>>>> writing
>>>>>>> routines and some new helper function, together with two small
>>>>>>> sample
>>>>>>> programs using them.
>>>>>> I'm resending the patch because what you sent was unnecesarily big
>>>>>> and
>>>>>> scary (which diff program you use?).
>>>>> I took now Your resent patch as base, completely reviewed it
>>>>> (hopefully
>>>>> nothing missing) and add the small utility programs pdfextract and
>>>>> pdfmerge to the patch after learning a little bit more about git.
>>>>> This
>>>>> patch is now created under ubuntu, so hopefully it is not bigger as
>>>>> necessary and not so scary. I also renamed the methods according to
>>>>> the
>>>>> poppler naming conventions, and the utility programs now give up
>>>>> with an error message, if the or one of the PDFs are encrypted
>>>>> instead of creating unreadable PDF(s).
>>>>>
>>>>>> Basically there are a few stilistic things i don't like (please
>>>>>> don't
>>>>>> use
>>>>>> this->)
>>>>> I removed them now.
>>>>>
>>>>>> Also do you really need to have things like ExtractPage in PDFDoc?
>>>>>> Not
>>>>>> sure they make sense to me there
>>>>> It would be a greater task to move it to pdfextract (and in addition
>>>>> all the mark methods), but it is probably doable. But on the other
>>>>> hand there are already routines like saveAs in PDFDoc, so I just
>>>>> rename it to savePageAs to clearify it. But if You still insist to
>>>>> remove them, I'll try it.
>>>>>
>>>>> Hopefully we are not doing work twice. As I read once again Your
>>>>> posting, I thought that I should do something more on it.
>>>> I've commited this patch. Please create man pages for pdfextract and
>>>> pdfmerge and send them in as soon as possible so we can include them
>>>> in
>>>> poppler 0.18
>>>>
>>>> Albert
>>>>
>>>>> Thomas
>>>>>
>>>>>> Albert
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> poppler mailing list
>>>>>> poppler at lists.freedesktop.org
>>>>>> http://lists.freedesktop.org/mailman/listinfo/poppler
>>>> _______________________________________________
>>>> poppler mailing list
>>>> poppler at lists.freedesktop.org
>>>> http://lists.freedesktop.org/mailman/listinfo/poppler
>>> .
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: writer.patch
Type: text/x-patch
Size: 3593 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20110918/0c3c970d/attachment.bin>
More information about the poppler
mailing list