<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
FWIW, pdfextract and pdfmerge don't work if the or one of the PDFs
are encrypted. Because they don't look at it, the resulting PDF(s)
become unreadable.<br>
<br>
Thomas<br>
<br>
Am 20.12.2010 16:15, schrieb Thomas Freitag:
<blockquote cite="mid:4D0F730C.20609@kabelmail.de" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
Hi all!<br>
<br>
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.<br>
<br>
In merging the writer routines I encountered, that some of the
problems I found are solved in the meantime. So, where they are
solved, I left the code as it is, but manually merging could
always cause new problems.<br>
<br>
The main changes beside solving some smaller problems are that I
make the most writer routines static, and that I add a new
parameter numoffset. The reason for this is the small sample
program pdfmerge, which merges several PDF to one bigger PDF, so
there I have no PDFDoc object for the resulting PDF, and I have to
change the num values of each single PDF.<br>
<br>
The other small sample program I add is to do the other way round:
Extract one or more pages from a multi page PDF to several one
page PDFs.<br>
<br>
I'm not an expert in configure, so I just attach the single main
cc's. Building the programs is simular topdftotext, they need
parseargs and the poppler library. So I would appreciate any help
on this.<br>
<br>
I think the patch together with the samples could make it easier
to file samples for bugs, i.e. extracting only the page or pages
which causes a regression, or merge several sample PDFs which
causing regressions.<br>
<br>
What are You thinking about it? Helpful or not?<br>
<br>
Best regards,<br>
Thomas<br>
<br>
Am 28.10.2010 15:49, schrieb Jennings Jay:
<blockquote
cite="mid:44EADB1AC2F19449B528A17643F417B97DF7212249@MS1.geoeye.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
..shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
..MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi poppler folks,<o:p></o:p></p>
<p class="MsoNormal">I am looking for a C++ example that
creates PDF files using the poppler library. I have poppler
compiled (Windows XP / Visual Studio 2008) and I have
working examples that *<b>read</b>* a PDF, but I don’t see
anything in the poppler codebase, documentation, or
mailing-list archives to show how to *<b>create</b>* a PDF.
My real goal is to create a Geospatial PDF, but any kind of
simple PDF creation example would probably help a lot.
Thanks for the pointer.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom:
3pt; margin-left: 0in;"><span style="color: rgb(31, 73,
125);">.........................................................</span><b><span
style="font-size: 9pt; color: black;" lang="EN-GB"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom:
3pt; margin-left: 0in;"><b><span style="font-size: 10pt;
color: rgb(0, 64, 128);" lang="EN-GB">Jay Jennings</span></b><b><span
style="font-size: 10pt; color: rgb(0, 64, 128);"><o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom:
3pt; margin-left: 0in;"><span style="font-size: 10pt; color:
rgb(0, 64, 128);" lang="EN-GB">Senior Software Engineer <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom:
3pt; margin-left: 0in;"><span style="font-size: 10pt; color:
rgb(0, 64, 128);" lang="EN-GB"><a moz-do-not-send="true"
href="http://www.geoeye.com"><span style="color: blue;">www.geoeye.com</span></a>
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom:
3pt; margin-left: 0in;"><span style="font-size: 10pt; color:
rgb(0, 64, 128);" lang="EN-GB">703.480.4614 <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom:
3pt; margin-left: 0in;"><span style="font-size: 10pt; color:
rgb(0, 64, 128);" lang="EN-GB"><a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:jennings.jay@geoeye.com">jennings.jay@geoeye.com</a><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom:
3pt; margin-left: 0in;"><span style="font-size: 10pt; color:
rgb(0, 64, 128);">21700 Atlantic Blvd. Dulles, VA 20166
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom:
3pt; margin-left: 0in;"><a moz-do-not-send="true"
href="http://www.geoeye.com/CorpSite"><span
style="font-size: 10pt; color: rgb(31, 73, 125);
text-decoration: none;"><img id="Picture_x0020_1"
src="cid:part1.05030408.07030405@kabelmail.de"
alt="cid:image001.png@01C9DE0A.57705A70" width="107"
border="0" height="37"></span></a><o:p></o:p></p>
<p class="MsoNormal"><b><i><span style="font-size: 10pt;
color: rgb(0, 64, 128);" lang="EN-GB">Trusted Imagery
Experts<o:p></o:p></span></i></b></p>
<p class="MsoNormal" style="margin-right: 0in; margin-bottom:
3pt; margin-left: 0in;"><span style="font-size: 10pt; color:
rgb(0, 64, 128);"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
poppler mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:poppler@lists.freedesktop.org">poppler@lists.freedesktop.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/poppler">http://lists.freedesktop.org/mailman/listinfo/poppler</a>
</pre>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>