Concatenating PDFs

View: New views
10 Messages — Rating Filter:   Alert me  

Concatenating PDFs

by Scott Elgram :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hello,

            I have been using iTextSharp for many years now with much success.  However, recently I have encountered an issue when I try to concatenate two PDFs that contain AcroForm objects.

            I’ll explain…I have a process currently that creates several PDFs, some of which have items like checkboxes and textboxes.  I do this with the following code:

---------------------------------

BaseFont helv = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.WINANSI, BaseFont.NOT_EMBEDDED);

writer.AddAnnotation(writer.AcroForm.AddMultiLineTextField("Comments" +f.ToString(), "", helv, 9, 70, 230, 545, 280));

writer.AddAnnotation(writer.AcroForm.AddCheckBox("Issues" + f.ToString(), "Yes", false, 340, 399, 355, 415));

---------------------------------

            The next step in my process is concatenating the many PDFs that were created into a single PDF (Our clients want it both ways).  This is where I encounter my problem.  The code I have works just great except that it does not seem to include the checkboxes and such in the new file.  When I did this originally I had a similar problem with the bookmarks but I managed to find a way to get those in the new file.

 

            Can anyone tell me how or even if it’s possible to import these checkboxes and such when I concatenate the PDFs?

 

-Scott

 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: Concatenating PDFs

by Paulo Soares :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

See http://itext.ugent.be/library/question.php?id=56.

Paulo
----- Original Message -----
From: "Scott Elgram" <SElgram@...>
To: <itextsharp-questions@...>
Sent: Saturday, July 19, 2008 12:43 AM
Subject: [itextsharp-questions] Concatenating PDFs


> Hello,
>
>            I have been using iTextSharp for many years now with much
> success.  However, recently I have encountered an issue when I try to
> concatenate two PDFs that contain AcroForm objects.
>
>            I'll explain.I have a process currently that creates several
> PDFs, some of which have items like checkboxes and textboxes.  I do this
> with the following code:
>
> ---------------------------------
>
> BaseFont helv = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.WINANSI,
> BaseFont.NOT_EMBEDDED);
>
> writer.AddAnnotation(writer.AcroForm.AddMultiLineTextField("Comments"
> +f.ToString(), "", helv, 9, 70, 230, 545, 280));
>
> writer.AddAnnotation(writer.AcroForm.AddCheckBox("Issues" + f.ToString(),
> "Yes", false, 340, 399, 355, 415));
>
> ---------------------------------
>
>            The next step in my process is concatenating the many PDFs that
> were created into a single PDF (Our clients want it both ways).  This is
> where I encounter my problem.  The code I have works just great except
> that
> it does not seem to include the checkboxes and such in the new file.  When
> I
> did this originally I had a similar problem with the bookmarks but I
> managed
> to find a way to get those in the new file.
>
>
>
>            Can anyone tell me how or even if it's possible to import these
> checkboxes and such when I concatenate the PDFs?
>
>
>
> -Scott


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Parent Message unknown Re: Concatenating PDFs

by Gerard Hulshoff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ik ben op vakantie. Voor dringende zaken kunt u bellen met Compano of een mail sturen naar support@....

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: Concatenating PDFs

by Scott Elgram :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Paulo...Thank you for that link it pointed out a problem that I didn't know
I had.  However, it did not seem to answer my question.

  I have created a small program to experiment with this issue some more so
perhaps I can better explain my problem.  Like in that link you sent I have
two PDFs (File1.pdf and File2.pdf) that contain form elements like
checkboxes and textboxes.  After reading that document from the previous
message I have gone ahead and changed the form elements to have unique
names.  What I am trying to do is merge these two PDFs into a third PDF
(Dest.pdf) that contains both File1.pdf and File2.pdf.  When my program
merges these two PDFs the form elements do not show up on the third PDF.

  Does anyone have a solution to this issue?

-Scott

-----Original Message-----
From: itextsharp-questions-bounces@...
[mailto:itextsharp-questions-bounces@...] On Behalf Of
Paulo Soares
Sent: Saturday, July 19, 2008 1:11 AM
To: Post all your questions about iTextSharp here
Subject: Re: [itextsharp-questions] Concatenating PDFs

See http://itext.ugent.be/library/question.php?id=56.

Paulo
----- Original Message -----
From: "Scott Elgram" <SElgram@...>
To: <itextsharp-questions@...>
Sent: Saturday, July 19, 2008 12:43 AM
Subject: [itextsharp-questions] Concatenating PDFs


> Hello,
>
>            I have been using iTextSharp for many years now with much
> success.  However, recently I have encountered an issue when I try to
> concatenate two PDFs that contain AcroForm objects.
>
>            I'll explain.I have a process currently that creates several
> PDFs, some of which have items like checkboxes and textboxes.  I do this
> with the following code:
>
> ---------------------------------
>
> BaseFont helv = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.WINANSI,
> BaseFont.NOT_EMBEDDED);
>
> writer.AddAnnotation(writer.AcroForm.AddMultiLineTextField("Comments"
> +f.ToString(), "", helv, 9, 70, 230, 545, 280));
>
> writer.AddAnnotation(writer.AcroForm.AddCheckBox("Issues" + f.ToString(),
> "Yes", false, 340, 399, 355, 415));
>
> ---------------------------------
>
>            The next step in my process is concatenating the many PDFs that
> were created into a single PDF (Our clients want it both ways).  This is
> where I encounter my problem.  The code I have works just great except
> that
> it does not seem to include the checkboxes and such in the new file.  When

> I
> did this originally I had a similar problem with the bookmarks but I
> managed
> to find a way to get those in the new file.
>
>
>
>            Can anyone tell me how or even if it's possible to import these
> checkboxes and such when I concatenate the PDFs?
>
>
>
> -Scott


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: Concatenating PDFs

by Paulo Soares :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As usual in this cases, provide a small standalone program and any required
files so that the problem can be reproduced.

Paulo

----- Original Message -----
From: "Scott Elgram" <SElgram@...>
To: "'Post all your questions about iTextSharp here'"
<itextsharp-questions@...>
Sent: Monday, July 21, 2008 8:33 PM
Subject: Re: [itextsharp-questions] Concatenating PDFs


Paulo...Thank you for that link it pointed out a problem that I didn't know
I had.  However, it did not seem to answer my question.

  I have created a small program to experiment with this issue some more so
perhaps I can better explain my problem.  Like in that link you sent I have
two PDFs (File1.pdf and File2.pdf) that contain form elements like
checkboxes and textboxes.  After reading that document from the previous
message I have gone ahead and changed the form elements to have unique
names.  What I am trying to do is merge these two PDFs into a third PDF
(Dest.pdf) that contains both File1.pdf and File2.pdf.  When my program
merges these two PDFs the form elements do not show up on the third PDF.

  Does anyone have a solution to this issue?

-Scott

-----Original Message-----
From: itextsharp-questions-bounces@...
[mailto:itextsharp-questions-bounces@...] On Behalf Of
Paulo Soares
Sent: Saturday, July 19, 2008 1:11 AM
To: Post all your questions about iTextSharp here
Subject: Re: [itextsharp-questions] Concatenating PDFs

See http://itext.ugent.be/library/question.php?id=56.

Paulo
----- Original Message -----
From: "Scott Elgram" <SElgram@...>
To: <itextsharp-questions@...>
Sent: Saturday, July 19, 2008 12:43 AM
Subject: [itextsharp-questions] Concatenating PDFs


> Hello,
>
>            I have been using iTextSharp for many years now with much
> success.  However, recently I have encountered an issue when I try to
> concatenate two PDFs that contain AcroForm objects.
>
>            I'll explain.I have a process currently that creates several
> PDFs, some of which have items like checkboxes and textboxes.  I do this
> with the following code:
>
> ---------------------------------
>
> BaseFont helv = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.WINANSI,
> BaseFont.NOT_EMBEDDED);
>
> writer.AddAnnotation(writer.AcroForm.AddMultiLineTextField("Comments"
> +f.ToString(), "", helv, 9, 70, 230, 545, 280));
>
> writer.AddAnnotation(writer.AcroForm.AddCheckBox("Issues" + f.ToString(),
> "Yes", false, 340, 399, 355, 415));
>
> ---------------------------------
>
>            The next step in my process is concatenating the many PDFs that
> were created into a single PDF (Our clients want it both ways).  This is
> where I encounter my problem.  The code I have works just great except
> that
> it does not seem to include the checkboxes and such in the new file.  When

> I
> did this originally I had a similar problem with the bookmarks but I
> managed
> to find a way to get those in the new file.
>
>
>
>            Can anyone tell me how or even if it's possible to import these
> checkboxes and such when I concatenate the PDFs?
>
>
>
> -Scott


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Parent Message unknown Re: Concatenating PDFs

by Gerard Hulshoff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ik ben op vakantie. Voor dringende zaken kunt u bellen met Compano of een mail sturen naar support@....

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: Concatenating PDFs

by Scott Elgram :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm not sure if this mailing list will allow attached files so if this does
not have the attachment (ConcatPDF.x, rename to ConcatPDF.zip) please
contact me directly and I can send you the program.

This sample app is pretty straight forward and will demonstrate the issue I
am having.  There are two sample files that the program will try to
concatenate into a third file.  When the program does this the CheckBoxes
and TextBoxes from both sample files do not import.

Thanks,
-Scott

-----Original Message-----
From: itextsharp-questions-bounces@...
[mailto:itextsharp-questions-bounces@...] On Behalf Of
Paulo Soares
Sent: Monday, July 21, 2008 1:42 PM
To: Post all your questions about iTextSharp here
Subject: Re: [itextsharp-questions] Concatenating PDFs

As usual in this cases, provide a small standalone program and any required
files so that the problem can be reproduced.

Paulo

----- Original Message -----
From: "Scott Elgram" <SElgram@...>
To: "'Post all your questions about iTextSharp here'"
<itextsharp-questions@...>
Sent: Monday, July 21, 2008 8:33 PM
Subject: Re: [itextsharp-questions] Concatenating PDFs


Paulo...Thank you for that link it pointed out a problem that I didn't know
I had.  However, it did not seem to answer my question.

  I have created a small program to experiment with this issue some more so
perhaps I can better explain my problem.  Like in that link you sent I have
two PDFs (File1.pdf and File2.pdf) that contain form elements like
checkboxes and textboxes.  After reading that document from the previous
message I have gone ahead and changed the form elements to have unique
names.  What I am trying to do is merge these two PDFs into a third PDF
(Dest.pdf) that contains both File1.pdf and File2.pdf.  When my program
merges these two PDFs the form elements do not show up on the third PDF.

  Does anyone have a solution to this issue?

-Scott

-----Original Message-----
From: itextsharp-questions-bounces@...
[mailto:itextsharp-questions-bounces@...] On Behalf Of
Paulo Soares
Sent: Saturday, July 19, 2008 1:11 AM
To: Post all your questions about iTextSharp here
Subject: Re: [itextsharp-questions] Concatenating PDFs

See http://itext.ugent.be/library/question.php?id=56.

Paulo
----- Original Message -----
From: "Scott Elgram" <SElgram@...>
To: <itextsharp-questions@...>
Sent: Saturday, July 19, 2008 12:43 AM
Subject: [itextsharp-questions] Concatenating PDFs


> Hello,
>
>            I have been using iTextSharp for many years now with much
> success.  However, recently I have encountered an issue when I try to
> concatenate two PDFs that contain AcroForm objects.
>
>            I'll explain.I have a process currently that creates several
> PDFs, some of which have items like checkboxes and textboxes.  I do this
> with the following code:
>
> ---------------------------------
>
> BaseFont helv = BaseFont.CreateFont(BaseFont.HELVETICA, BaseFont.WINANSI,
> BaseFont.NOT_EMBEDDED);
>
> writer.AddAnnotation(writer.AcroForm.AddMultiLineTextField("Comments"
> +f.ToString(), "", helv, 9, 70, 230, 545, 280));
>
> writer.AddAnnotation(writer.AcroForm.AddCheckBox("Issues" + f.ToString(),
> "Yes", false, 340, 399, 355, 415));
>
> ---------------------------------
>
>            The next step in my process is concatenating the many PDFs that
> were created into a single PDF (Our clients want it both ways).  This is
> where I encounter my problem.  The code I have works just great except
> that
> it does not seem to include the checkboxes and such in the new file.  When

> I
> did this originally I had a similar problem with the bookmarks but I
> managed
> to find a way to get those in the new file.
>
>
>
>            Can anyone tell me how or even if it's possible to import these
> checkboxes and such when I concatenate the PDFs?
>
>
>
> -Scott

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

ConcatPDF.x (38K) Download Attachment

Re: Concatenating PDFs

by Paulo Soares-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You must use PdfCopyFields.

Paulo

> -----Original Message-----
> From: itextsharp-questions-bounces@...
> [mailto:itextsharp-questions-bounces@...]
> On Behalf Of Scott Elgram
> Sent: Tuesday, July 22, 2008 5:39 PM
> To: 'Post all your questions about iTextSharp here'
> Subject: Re: [itextsharp-questions] Concatenating PDFs
>
> I'm not sure if this mailing list will allow attached files
> so if this does
> not have the attachment (ConcatPDF.x, rename to ConcatPDF.zip) please
> contact me directly and I can send you the program.
>
> This sample app is pretty straight forward and will
> demonstrate the issue I
> am having.  There are two sample files that the program will try to
> concatenate into a third file.  When the program does this
> the CheckBoxes
> and TextBoxes from both sample files do not import.
>
> Thanks,
> -Scott
>
> -----Original Message-----
> From: itextsharp-questions-bounces@...
> [mailto:itextsharp-questions-bounces@...]
> On Behalf Of
> Paulo Soares
> Sent: Monday, July 21, 2008 1:42 PM
> To: Post all your questions about iTextSharp here
> Subject: Re: [itextsharp-questions] Concatenating PDFs
>
> As usual in this cases, provide a small standalone program
> and any required
> files so that the problem can be reproduced.
>
> Paulo
>
> ----- Original Message -----
> From: "Scott Elgram" <SElgram@...>
> To: "'Post all your questions about iTextSharp here'"
> <itextsharp-questions@...>
> Sent: Monday, July 21, 2008 8:33 PM
> Subject: Re: [itextsharp-questions] Concatenating PDFs
>
>
> Paulo...Thank you for that link it pointed out a problem that
> I didn't know
> I had.  However, it did not seem to answer my question.
>
>   I have created a small program to experiment with this
> issue some more so
> perhaps I can better explain my problem.  Like in that link
> you sent I have
> two PDFs (File1.pdf and File2.pdf) that contain form elements like
> checkboxes and textboxes.  After reading that document from
> the previous
> message I have gone ahead and changed the form elements to have unique
> names.  What I am trying to do is merge these two PDFs into a
> third PDF
> (Dest.pdf) that contains both File1.pdf and File2.pdf.  When
> my program
> merges these two PDFs the form elements do not show up on the
> third PDF.
>
>   Does anyone have a solution to this issue?
>
> -Scott
>
> -----Original Message-----
> From: itextsharp-questions-bounces@...
> [mailto:itextsharp-questions-bounces@...]
> On Behalf Of
> Paulo Soares
> Sent: Saturday, July 19, 2008 1:11 AM
> To: Post all your questions about iTextSharp here
> Subject: Re: [itextsharp-questions] Concatenating PDFs
>
> See http://itext.ugent.be/library/question.php?id=56.
>
> Paulo
> ----- Original Message -----
> From: "Scott Elgram" <SElgram@...>
> To: <itextsharp-questions@...>
> Sent: Saturday, July 19, 2008 12:43 AM
> Subject: [itextsharp-questions] Concatenating PDFs
>
>
> > Hello,
> >
> >            I have been using iTextSharp for many years now with much
> > success.  However, recently I have encountered an issue
> when I try to
> > concatenate two PDFs that contain AcroForm objects.
> >
> >            I'll explain.I have a process currently that
> creates several
> > PDFs, some of which have items like checkboxes and
> textboxes.  I do this
> > with the following code:
> >
> > ---------------------------------
> >
> > BaseFont helv = BaseFont.CreateFont(BaseFont.HELVETICA,
> BaseFont.WINANSI,
> > BaseFont.NOT_EMBEDDED);
> >
> >
> writer.AddAnnotation(writer.AcroForm.AddMultiLineTextField("Comments"
> > +f.ToString(), "", helv, 9, 70, 230, 545, 280));
> >
> > writer.AddAnnotation(writer.AcroForm.AddCheckBox("Issues" +
> f.ToString(),
> > "Yes", false, 340, 399, 355, 415));
> >
> > ---------------------------------
> >
> >            The next step in my process is concatenating the
> many PDFs that
> > were created into a single PDF (Our clients want it both
> ways).  This is
> > where I encounter my problem.  The code I have works just
> great except
> > that
> > it does not seem to include the checkboxes and such in the
> new file.  When
>
> > I
> > did this originally I had a similar problem with the bookmarks but I
> > managed
> > to find a way to get those in the new file.
> >
> >
> >
> >            Can anyone tell me how or even if it's possible
> to import these
> > checkboxes and such when I concatenate the PDFs?
> >
> >
> >
> > -Scott

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Parent Message unknown Re: Concatenating PDFs

by Gerard Hulshoff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ik ben op vakantie. Voor dringende zaken kunt u bellen met Compano of een mail sturen naar support@....

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

Re: Concatenating PDFs

by Scott Elgram :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you so much for your help.  I have resolved this using PdfCopyFields
like you suggested.  I have attached a revised project (ConcatPDF.x, rename
to ConcatPDF.zip) for anyone who is interested.

Paulo,
        I would appreciate your feed back on this solution if you have time.
At the start of this post you pointed out a problem that I was not aware of
and I'm curious to hear your feedback.

Thanks,
-Scott


-----Original Message-----
From: itextsharp-questions-bounces@...
[mailto:itextsharp-questions-bounces@...] On Behalf Of
Paulo Soares
Sent: Tuesday, July 22, 2008 9:53 AM
To: Post all your questions about iTextSharp here
Subject: Re: [itextsharp-questions] Concatenating PDFs

You must use PdfCopyFields.

Paulo

> -----Original Message-----
> From: itextsharp-questions-bounces@...
> [mailto:itextsharp-questions-bounces@...]
> On Behalf Of Scott Elgram
> Sent: Tuesday, July 22, 2008 5:39 PM
> To: 'Post all your questions about iTextSharp here'
> Subject: Re: [itextsharp-questions] Concatenating PDFs
>
> I'm not sure if this mailing list will allow attached files
> so if this does
> not have the attachment (ConcatPDF.x, rename to ConcatPDF.zip) please
> contact me directly and I can send you the program.
>
> This sample app is pretty straight forward and will
> demonstrate the issue I
> am having.  There are two sample files that the program will try to
> concatenate into a third file.  When the program does this
> the CheckBoxes
> and TextBoxes from both sample files do not import.
>
> Thanks,
> -Scott
>
> -----Original Message-----
> From: itextsharp-questions-bounces@...
> [mailto:itextsharp-questions-bounces@...]
> On Behalf Of
> Paulo Soares
> Sent: Monday, July 21, 2008 1:42 PM
> To: Post all your questions about iTextSharp here
> Subject: Re: [itextsharp-questions] Concatenating PDFs
>
> As usual in this cases, provide a small standalone program
> and any required
> files so that the problem can be reproduced.
>
> Paulo
>
> ----- Original Message -----
> From: "Scott Elgram" <SElgram@...>
> To: "'Post all your questions about iTextSharp here'"
> <itextsharp-questions@...>
> Sent: Monday, July 21, 2008 8:33 PM
> Subject: Re: [itextsharp-questions] Concatenating PDFs
>
>
> Paulo...Thank you for that link it pointed out a problem that
> I didn't know
> I had.  However, it did not seem to answer my question.
>
>   I have created a small program to experiment with this
> issue some more so
> perhaps I can better explain my problem.  Like in that link
> you sent I have
> two PDFs (File1.pdf and File2.pdf) that contain form elements like
> checkboxes and textboxes.  After reading that document from
> the previous
> message I have gone ahead and changed the form elements to have unique
> names.  What I am trying to do is merge these two PDFs into a
> third PDF
> (Dest.pdf) that contains both File1.pdf and File2.pdf.  When
> my program
> merges these two PDFs the form elements do not show up on the
> third PDF.
>
>   Does anyone have a solution to this issue?
>
> -Scott
>
> -----Original Message-----
> From: itextsharp-questions-bounces@...
> [mailto:itextsharp-questions-bounces@...]
> On Behalf Of
> Paulo Soares
> Sent: Saturday, July 19, 2008 1:11 AM
> To: Post all your questions about iTextSharp here
> Subject: Re: [itextsharp-questions] Concatenating PDFs
>
> See http://itext.ugent.be/library/question.php?id=56.
>
> Paulo
> ----- Original Message -----
> From: "Scott Elgram" <SElgram@...>
> To: <itextsharp-questions@...>
> Sent: Saturday, July 19, 2008 12:43 AM
> Subject: [itextsharp-questions] Concatenating PDFs
>
>
> > Hello,
> >
> >            I have been using iTextSharp for many years now with much
> > success.  However, recently I have encountered an issue
> when I try to
> > concatenate two PDFs that contain AcroForm objects.
> >
> >            I'll explain.I have a process currently that
> creates several
> > PDFs, some of which have items like checkboxes and
> textboxes.  I do this
> > with the following code:
> >
> > ---------------------------------
> >
> > BaseFont helv = BaseFont.CreateFont(BaseFont.HELVETICA,
> BaseFont.WINANSI,
> > BaseFont.NOT_EMBEDDED);
> >
> >
> writer.AddAnnotation(writer.AcroForm.AddMultiLineTextField("Comments"
> > +f.ToString(), "", helv, 9, 70, 230, 545, 280));
> >
> > writer.AddAnnotation(writer.AcroForm.AddCheckBox("Issues" +
> f.ToString(),
> > "Yes", false, 340, 399, 355, 415));
> >
> > ---------------------------------
> >
> >            The next step in my process is concatenating the
> many PDFs that
> > were created into a single PDF (Our clients want it both
> ways).  This is
> > where I encounter my problem.  The code I have works just
> great except
> > that
> > it does not seem to include the checkboxes and such in the
> new file.  When
>
> > I
> > did this originally I had a similar problem with the bookmarks but I
> > managed
> > to find a way to get those in the new file.
> >
> >
> >
> >            Can anyone tell me how or even if it's possible
> to import these
> > checkboxes and such when I concatenate the PDFs?
> >
> >
> >
> > -Scott

Aviso Legal:

Esta mensagem i destinada exclusivamente ao destinatario. Pode conter
informagco confidencial ou legalmente protegida. A incorrecta transmissco
desta mensagem nco significa a perca de confidencialidade. Se esta mensagem
for recebida por engano, por favor envie-a de volta para o remetente e
apague-a do seu sistema de imediato. I proibido a qualquer pessoa que nco o
destinatario de usar, revelar ou distribuir qualquer parte desta mensagem.



Disclaimer:

This message is destined exclusively to the intended receiver. It may
contain confidential or legally protected information. The incorrect
transmission of this message does not mean the loss of its confidentiality.
If this message is received by mistake, please send it back to the sender
and delete it from your system immediately. It is forbidden to any person
who is not the intended receiver to use, distribute or copy any part of this
message.





-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

ConcatPDF.x (41K) Download Attachment
LightInTheBox - Buy quality products at wholesale price