That's a very old example that uses another technique. > -----Original Message----- > From: michelle jeffreys [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 18, 2006 8:23 AM > To: Paulo Soares; Bruno Lowagie > Cc: [email protected] > Subject: RE: [iText-questions] Add an entire document to a > document... SOLVED > > Thanks Paul, I also found a C# version of the concat class > here for anyone interested: > http://itextsharp.sourceforge.net/examples/Concat.cs > > Paulo Soares <[EMAIL PROTECTED]> wrote: > > That's a bug in your conversion. Instead of > master.Add(bookmarks) use > master.AddRange(bookmarks). > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of michelle jeffreys > > Sent: Monday, January 16, 2006 3:08 PM > > To: Bruno Lowagie > > Cc: [email protected] > > Subject: Re: [iText-questions] Add an entire document > to a document... > > > > Thanks Bruno, this looks like it should work, > > > > However, I repeatedly get the error "Specified cast is not > > valid" on document.Close() when using the example (adapted > > for .NET). I am using the PDF files from the example, and > > creating a new output file each time. > > > > I have tried flushing the writer, and creating the FileStream > > outside of the PdfCopy method in order to flush and close it > > properly also; but the same error occurs, and the file, > > although created, is corrupted and cannot be repaired > or opened. > > > > I don't understand what is being cast. Am I using the correct > > Stream type? > > > > (code attached) > > thanks, > > Mark > > > > Bruno Lowagie wrote: > > > > michelle jeffreys wrote: > > > > > thanks Bruno, > > > > > > In fact, on reading your answer it appears my > > question is of a more > > > basic nature. We're using CrystalReports in C# to > > create the PDF's and > > > archive them. All I actually need to do is figure > out how to > > > concatenate those PDFs using iText and C#... > > > > > > I'm not sure if it's possible to call the class > > > *com.lowagie.tools.concat_pdf* from within *C#* > > instead of from the > > > command line? > > > > If you're using C#, then you should download a .NET > > port of iText, > > for instance: http://itextsharp.sourceforge.net/ > > From there it's easy to adapt the examples in the iText > > tutorial: > > http://itextdocs.lowagie.com/tutorial/general/copystamp/ > > br, > > Bruno > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you > > grep through log files > > for problems? Stop! Download the new AJAX search engine > > that makes > > searching your log files as easy as surfing the web. > > DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > > _______________________________________________ > > iText-questions mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > ________________________________ > > > > Yahoo! Messenger > > > > tp://uk.messenger.yahoo.com> NEW - crystal clear PC to PC > > calling worldwide with voicemail > > > > tp://uk.messenger.yahoo.com> > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you > grep through log files > for problems? Stop! Download the new AJAX search engine > that makes > searching your log files as easy as surfing the web. > DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > ________________________________ > > Yahoo! Photos > <http://us.rd.yahoo.com/mail/uk/taglines/default/photos/*http: > //uk.photos.yahoo.com/> - NEW, now offering a quality print > service > <http://us.rd.yahoo.com/mail/uk/taglines/default/photos/*http: > //uk.photos.yahoo.com/> from just 8p a photo. >
------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
