<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script> |
December 30, 2006
-
Date: December 30, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <013901c72c18$c039f710$1201a8c0@dennis >
Click on one of the links below our photos at http://www.lowagie.com/iText/.
Paulo
----- Original Message -----
From: "Dennis J. Kingsley" <djk-33EVKKkMy2e61VtY7fu8aA@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Saturday, December 30, 2006 1:45 PM
Subject: [itextsharp-questions] Question about your book
> Paulo,
>
>
>
> I am going to purchase the IText book in the near future and was wondering
> if there any particular place to purchase it from that nets you the most
> profit?
>
>
>
> Dennis
>
>
--------------------------------------------------------------------------------
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--------------------------------------------------------------------------------
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 30, 2006 From: "Dennis J. Kingsley" <djk-33EVKKkMy2e61VtY7fu8aA@public.gmane.org>
Paulo,
I am going to purchase the IText book in the near future and was wondering if there any particular place to purchase it from that nets you the most profit?
Dennis
|
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 30, 2006 From: "Nick Fox" <nicolaspatrickfox-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
In-reply-to: <BAY101-F116E94A148621FAC652898BDC50-MsuGFMq8XAE@public.gmane.org> References: <BAY101-F116E94A148621FAC652898BDC50@phx.gbl >
I have found the solution to the problem. I added the following:
Response.AppendHeader("Content-Disposition","filename=routes.pdf");
and it worked! I found the answer here in the mailing list. Thank you so
much!
Nick
>From: "Nick Fox" <nicolaspatrickfox-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
>Reply-To: Post all your questions about iTextSharp here
><itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
>To: itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: Re: [itextsharp-questions] Error generating pdfs in asp.net app
>Date: Sat, 30 Dec 2006 02:04:24 -0800
>
>
>Thank you for responding Dan. I just tried your method and had the same
>result. It worked fine on the Windows XP box but generated the same error
>on
>the Windows Server 2003 box.
>
>This definitely has me baffled.
>
>Nick
>
> >From: Daniel Essin <essin-EkmVulN54Sk@public.gmane.org>
> >Reply-To: Post all your questions about iTextSharp here
> ><itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
> >To: itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> >Subject: Re: [itextsharp-questions] Error generating pdfs in asp.net app
> >Date: Fri, 29 Dec 2006 23:58:28 -0800
> >
> >I just wrestled with the same issue.
> >I think the solution might be(thanks to Paolo):
> >document.Close();
> >byte[] b = m.ToArray();
> >resp.AppendHeader("Content-Length", b.Length.ToString());
> >resp.OutputStream.Write(b, 0, b.Length);
> >
> >I ran into trouble putting the m.GetBuffer() directly into the
> >OutputStream.Write call.
> >
> >Dan
> >
> >Nick Fox wrote:
> > > Hi, I am trying to generate pdfs from an ASP.NET app. When I run the
>app
> > > from my local XP pro machine, it runs fine. When I run the app on a
> >Windows
> > > 2003 server, I get the following error (in IE 6 and 7):
> > >
> > > The XML page cannot be displayed
> > > Cannot view XML input using style sheet. Please correct the error and
> >then
> > > click the Refresh button, or try again later.
> > >
> > >
> >--------------------------------------------------------------------------------
> > >
> > > An invalid character was found in text content. Error processing
> >resource
> > > 'http://localhost/appPages/GetPDF.aspx'. Line 2,...
> > >
> > > %
> > >
> > >
> > > Here is the code I used to generate the PDF:
> > >
> > >
> > > using System;
> > > using System.IO;
> > > using iTextSharp.text;
> > > using iTextSharp.text.pdf;
> > >
> > > public partial class appPages_GetPDF : System.Web.UI.Page
> > > {
> > > protected void Page_Load(object sender, EventArgs e)
> > > {
> > > MemoryStream m = new MemoryStream();
> > > Document document = new Document();
> > >
> > > try
> > > {
> > > Response.ContentType = "application/pdf";
> > > PdfWriter writer = PdfWriter.GetInstance(document, m);
> > > writer.CloseStream = false;
> > >
> > > document.Open();
> > > document.Add(new Paragraph("Hello World"));
> > >
> > > }
> > > catch (DocumentException ex)
> > > {
> > > Console.Error.WriteLine(ex.StackTrace);
> > > Console.Error.WriteLine(ex.Message);
> > > }
> > > document.Close();
> > >
> > > Response.OutputStream.Write(m.GetBuffer(), 0,
> > > m.GetBuffer().Length);
> > > Response.OutputStream.Flush();
> > > Response.OutputStream.Close();
> > > m.Close();
> > > }
> > > }
> > >
> > >
> > >
> > >
> >-------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
>share
> >your
> > > opinions on IT & business topics through brief surveys - and earn cash
> > >
> >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> >
> >-------------------------------------------------------------------------
> >Take Surveys. Earn Cash. Influence the Future of IT
> >Join SourceForge.net's Techsay panel and you'll get the chance to share
> >your
> >opinions on IT & business topics through brief surveys - and earn cash
> >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >_______________________________________________
> >itextsharp-questions mailing list
> >itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> >https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share
>your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>itextsharp-questions mailing list
>itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 30, 2006 From: "Nick Fox" <nicolaspatrickfox-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
In-reply-to: <en5672$r0u$1@sea.gmane.org > References: <en5672$r0u$1@sea.gmane.org >
Thank you for responding Dan. I just tried your method and had the same
result. It worked fine on the Windows XP box but generated the same error on
the Windows Server 2003 box.
This definitely has me baffled.
Nick
>From: Daniel Essin <essin-EkmVulN54Sk@public.gmane.org>
>Reply-To: Post all your questions about iTextSharp here
><itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
>To: itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>Subject: Re: [itextsharp-questions] Error generating pdfs in asp.net app
>Date: Fri, 29 Dec 2006 23:58:28 -0800
>
>I just wrestled with the same issue.
>I think the solution might be(thanks to Paolo):
>document.Close();
>byte[] b = m.ToArray();
>resp.AppendHeader("Content-Length", b.Length.ToString());
>resp.OutputStream.Write(b, 0, b.Length);
>
>I ran into trouble putting the m.GetBuffer() directly into the
>OutputStream.Write call.
>
>Dan
>
>Nick Fox wrote:
> > Hi, I am trying to generate pdfs from an ASP.NET app. When I run the app
> > from my local XP pro machine, it runs fine. When I run the app on a
>Windows
> > 2003 server, I get the following error (in IE 6 and 7):
> >
> > The XML page cannot be displayed
> > Cannot view XML input using style sheet. Please correct the error and
>then
> > click the Refresh button, or try again later.
> >
> >
>--------------------------------------------------------------------------------
> >
> > An invalid character was found in text content. Error processing
>resource
> > 'http://localhost/appPages/GetPDF.aspx'. Line 2,...
> >
> > %
> >
> >
> > Here is the code I used to generate the PDF:
> >
> >
> > using System;
> > using System.IO;
> > using iTextSharp.text;
> > using iTextSharp.text.pdf;
> >
> > public partial class appPages_GetPDF : System.Web.UI.Page
> > {
> > protected void Page_Load(object sender, EventArgs e)
> > {
> > MemoryStream m = new MemoryStream();
> > Document document = new Document();
> >
> > try
> > {
> > Response.ContentType = "application/pdf";
> > PdfWriter writer = PdfWriter.GetInstance(document, m);
> > writer.CloseStream = false;
> >
> > document.Open();
> > document.Add(new Paragraph("Hello World"));
> >
> > }
> > catch (DocumentException ex)
> > {
> > Console.Error.WriteLine(ex.StackTrace);
> > Console.Error.WriteLine(ex.Message);
> > }
> > document.Close();
> >
> > Response.OutputStream.Write(m.GetBuffer(), 0,
> > m.GetBuffer().Length);
> > Response.OutputStream.Flush();
> > Response.OutputStream.Close();
> > m.Close();
> > }
> > }
> >
> >
> >
> >
>-------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
>your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share
>your
>opinions on IT & business topics through brief surveys - and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>itextsharp-questions mailing list
>itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 30, 2006 From: "Nick Fox" <nicolaspatrickfox-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
Hi, I am trying to generate pdfs from an ASP.NET app. When I run the app
from my local XP pro machine, it runs fine. When I run the app on a Windows
2003 server, I get the following error (in IE 6 and 7):
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then
click the Refresh button, or try again later.
--------------------------------------------------------------------------------
An invalid character was found in text content. Error processing resource
'http://localhost/appPages/GetPDF.aspx'. Line 2,...
%
Here is the code I used to generate the PDF:
using System;
using System.IO;
using iTextSharp.text;
using iTextSharp.text.pdf;
public partial class appPages_GetPDF : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
MemoryStream m = new MemoryStream();
Document document = new Document();
try
{
Response.ContentType = "application/pdf";
PdfWriter writer = PdfWriter.GetInstance(document, m);
writer.CloseStream = false;
document.Open();
document.Add(new Paragraph("Hello World"));
}
catch (DocumentException ex)
{
Console.Error.WriteLine(ex.StackTrace);
Console.Error.WriteLine(ex.Message);
}
document.Close();
Response.OutputStream.Write(m.GetBuffer(), 0,
m.GetBuffer().Length);
Response.OutputStream.Flush();
Response.OutputStream.Close();
m.Close();
}
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 30, 2006 From: Daniel Essin <essin-EkmVulN54Sk@public.gmane.org>
In-reply-to: <BAY101-F26CE94DE3F9D1ADDE35199BDC50-MsuGFMq8XAE@public.gmane.org> References: <BAY101-F26CE94DE3F9D1ADDE35199BDC50@phx.gbl >
I just wrestled with the same issue.
I think the solution might be(thanks to Paolo):
document.Close();
byte[] b = m.ToArray();
resp.AppendHeader("Content-Length", b.Length.ToString());
resp.OutputStream.Write(b, 0, b.Length);
I ran into trouble putting the m.GetBuffer() directly into the
OutputStream.Write call.
Dan
Nick Fox wrote:
> Hi, I am trying to generate pdfs from an ASP.NET app. When I run the app
> from my local XP pro machine, it runs fine. When I run the app on a Windows
> 2003 server, I get the following error (in IE 6 and 7):
>
> The XML page cannot be displayed
> Cannot view XML input using style sheet. Please correct the error and then
> click the Refresh button, or try again later.
>
> --------------------------------------------------------------------------------
>
> An invalid character was found in text content. Error processing resource
> 'http://localhost/appPages/GetPDF.aspx'. Line 2,...
>
> %
>
>
> Here is the code I used to generate the PDF:
>
>
> using System;
> using System.IO;
> using iTextSharp.text;
> using iTextSharp.text.pdf;
>
> public partial class appPages_GetPDF : System.Web.UI.Page
> {
> protected void Page_Load(object sender, EventArgs e)
> {
> MemoryStream m = new MemoryStream();
> Document document = new Document();
>
> try
> {
> Response.ContentType = "application/pdf";
> PdfWriter writer = PdfWriter.GetInstance(document, m);
> writer.CloseStream = false;
>
> document.Open();
> document.Add(new Paragraph("Hello World"));
>
> }
> catch (DocumentException ex)
> {
> Console.Error.WriteLine(ex.StackTrace);
> Console.Error.WriteLine(ex.Message);
> }
> document.Close();
>
> Response.OutputStream.Write(m.GetBuffer(), 0,
> m.GetBuffer().Length);
> Response.OutputStream.Flush();
> Response.OutputStream.Close();
> m.Close();
> }
> }
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 29, 2006
-
Date: December 29, 2006 From: "Nick Fox" <nicolaspatrickfox-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org>
Hi, I am trying to generate pdfs from an ASP.NET app. When I run the app
from my local XP pro machine, it runs fine. When I run the app on a Windows
2003 server, I get the following error (in IE 6 and 7):
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then
click the Refresh button, or try again later.
--------------------------------------------------------------------------------
An invalid character was found in text content. Error processing resource
'http://localhost/appPages/GetPDF.aspx'. Line 2,...
%
Here is the code I used to generate the PDF:
using System;
using System.IO;
using iTextSharp.text;
using iTextSharp.text.pdf;
public partial class appPages_GetPDF : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
MemoryStream m = new MemoryStream();
Document document = new Document();
try
{
Response.ContentType = "application/pdf";
PdfWriter writer = PdfWriter.GetInstance(document, m);
writer.CloseStream = false;
document.Open();
document.Add(new Paragraph("Hello World"));
}
catch (DocumentException ex)
{
Console.Error.WriteLine(ex.StackTrace);
Console.Error.WriteLine(ex.Message);
}
document.Close();
Response.OutputStream.Write(m.GetBuffer(), 0,
m.GetBuffer().Length);
Response.OutputStream.Flush();
Response.OutputStream.Close();
m.Close();
}
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: Daniel Essin <essin-EkmVulN54Sk@public.gmane.org>
In-reply-to: <00c501c72ba5$d216b450$587ba8c0@psoaresk > References: <en45kj$qd9$1@sea.gmane.org ><00a901c72b9c$e31adeb0$587ba8c0@psoaresk > <en47cq$v0c$1@sea.gmane.org ><00bb01c72ba2$b670f1a0$587ba8c0@psoaresk > <en498v$3aq$2@sea.gmane.org > <00c501c72ba5$d216b450$587ba8c0@psoaresk >
Now that you point it out, it makes sense. I didn't see a corresponding
property in the java version and it didn't occur to me that such a
property would exist. It is more convenient in the default case to not
have to worry about always closing everything.
Again, I want to thank you for your help. I'm getting very excited about
the capabilities that iTextSharp will provide.
Dan
Paulo Soares wrote:
> ----- Original Message -----
> From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
> To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
> Sent: Friday, December 29, 2006 11:44 PM
> Subject: Re: [itextsharp-questions] How to use memory stream with pdfwriter
>
>
>> You're absolutely right and it works!
>>
>> I'm still not clear what event actually closes the stream. Is it the
>> document.Close()?
>>
>
> What else?
>
> Note that you can call
>
> writer.CloseStream = false;
>
> to prevent the stream to be closed.
>
> Paulo
>
>
>
>> Thank you so much,
>> Dan
>>
>> Paulo Soares wrote:
>>> When a MemoryStream is closed the only method that works is ToArray().
>>>
>>> document.Close();
>>> byte[] b = baos.ToArray();
>>> resp.AppendHeader("Content-Length", b.Length.ToString());
>>> resp.OutputStream.Write(b, 0, b.Length);
>>>
>>> Paulo
>>>
>>> ----- Original Message -----
>>> From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
>>> To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
>>> Sent: Friday, December 29, 2006 11:12 PM
>>> Subject: Re: [itextsharp-questions] How to use memory stream with
>>> pdfwriter
>>>
>>>
>>>> Thanks. You're right. It throwse an exception where it is currently
>>>> placed. What I was using during most of my testing was:
>>>>
>>>> baos.WriteTo(resp.OutputStream);
>>>> document.Close();
>>>>
>>>> Does this mean that closing the document, closes whatever stream is
>>>> associated with the Writer that is associated with the document?
>>>>
>>>> Also, I'm not clear in what way you are suggesting that I use ToArray().
>>>> I tried:
>>>> resp.AppendHeader("Content-Length", baos.Length.ToString());
>>>> resp.OutputStream.Write(baos.ToArray(), 0, (int)baos.Length);
>>>> document.Close();
>>>>
>>>> but it tells me that the "File is damaged and could not be repaired."
>>>>
>>>> Is that what you had in mind?
>>>>
>>>> I'm sorry for being so dense but I am new to this part of the class
>>>> library and I have no intuition about what is correct.
>>>>
>>>> Thanks for your help,
>>>> Dan
>>>>
>>>>
>>>>
>>>> Paulo Soares wrote:
>>>>> ----- Original Message -----
>>>>> From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
>>>>> To:
>>>>> <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
>>>>> Sent: Friday, December 29, 2006 10:42 PM
>>>>> Subject: [itextsharp-questions] How to use memory stream with pdfwriter
>>>>>
>>>>>
>>>>>> The following are 3 samples of code. The first one and the third on
>>>>>> both
>>>>>> work. The second one (even though there are bytes in the buffer)
>>>>>> produces 0 bytes generated into the OutputStream.
>>>>>>
>>>>>> I am at a loss to understand why this is not working. I hope that
>>>>>> someone can provide me with some guidance.
>>>>>>
>>>>> You can start by reading the documentation for MemoryStream. WriteTo()
>>>>> will
>>>>> throw an exception if the stream is closed, as it's the case. Use
>>>>> ToArray().
>>>>>
>>>>> Paulo
>>>>>
>>>>>> Thank you,
>>>>>> Dan Essin
>>>>>>
>>>>>> Send PdfRwiter tp Response.OutputStream
>>>>>> ------------------------------------------------------------
>>>>>> HttpResponse resp = this.Response;
>>>>>> Document document = new Document();
>>>>>>
>>>>>>
>>>>>> PdfWriter.GetInstance(document, resp.OutputStream);
>>>>>> document.Open();
>>>>>> document.Add(new Paragraph("Hello World"));
>>>>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>>>>> resp.ContentType = "application/pdf";
>>>>>> document.Close();
>>>>>>
>>>>>>
>>>>>> Send PdfWriter to Memory Stream, then to Web Page
>>>>>> ------------------------------------------------------------
>>>>>> HttpResponse resp = this.Response;
>>>>>> Document document = new Document();
>>>>>> System.IO.MemoryStream baos = new MemoryStream();
>>>>>> PdfWriter.GetInstance(document, baos);
>>>>>> document.Open();
>>>>>> document.Add(new Paragraph("Hello World"));
>>>>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>>>>> resp.ContentType = "application/pdf";
>>>>>> document.Close();
>>>>>> baos.WriteTo(resp.OutputStream);
>>>>>>
>>>>>>
>>>>>> Send PdfWriter FileStream
>>>>>> ----------------------------------------------------------------
>>>>>>
>>>>>> HttpResponse resp = this.Response;
>>>>>> Document document = new Document();
>>>>>> FileStream fs = new FileStream("e://abcd.pdf", FileMode.Create);
>>>>>> PdfWriter.GetInstance(document, fs);
>>>>>> document.Open();
>>>>>> document.Add(new Paragraph("Hello World"));
>>>>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>>>>> resp.ContentType = "application/pdf";
>>>>>> document.Close();
>>>>>> fs.Close();
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <en45kj$qd9$1@sea.gmane.org ><00a901c72b9c$e31adeb0$587ba8c0@psoaresk > <en47cq$v0c$1@sea.gmane.org ><00bb01c72ba2$b670f1a0$587ba8c0@psoaresk > <en498v$3aq$2@sea.gmane.org >
----- Original Message -----
From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Friday, December 29, 2006 11:44 PM
Subject: Re: [itextsharp-questions] How to use memory stream with pdfwriter
> You're absolutely right and it works!
>
> I'm still not clear what event actually closes the stream. Is it the
> document.Close()?
>
What else?
Note that you can call
writer.CloseStream = false;
to prevent the stream to be closed.
Paulo
> Thank you so much,
> Dan
>
> Paulo Soares wrote:
>> When a MemoryStream is closed the only method that works is ToArray().
>>
>> document.Close();
>> byte[] b = baos.ToArray();
>> resp.AppendHeader("Content-Length", b.Length.ToString());
>> resp.OutputStream.Write(b, 0, b.Length);
>>
>> Paulo
>>
>> ----- Original Message -----
>> From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
>> To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
>> Sent: Friday, December 29, 2006 11:12 PM
>> Subject: Re: [itextsharp-questions] How to use memory stream with
>> pdfwriter
>>
>>
>>> Thanks. You're right. It throwse an exception where it is currently
>>> placed. What I was using during most of my testing was:
>>>
>>> baos.WriteTo(resp.OutputStream);
>>> document.Close();
>>>
>>> Does this mean that closing the document, closes whatever stream is
>>> associated with the Writer that is associated with the document?
>>>
>>> Also, I'm not clear in what way you are suggesting that I use ToArray().
>>> I tried:
>>> resp.AppendHeader("Content-Length", baos.Length.ToString());
>>> resp.OutputStream.Write(baos.ToArray(), 0, (int)baos.Length);
>>> document.Close();
>>>
>>> but it tells me that the "File is damaged and could not be repaired."
>>>
>>> Is that what you had in mind?
>>>
>>> I'm sorry for being so dense but I am new to this part of the class
>>> library and I have no intuition about what is correct.
>>>
>>> Thanks for your help,
>>> Dan
>>>
>>>
>>>
>>> Paulo Soares wrote:
>>>> ----- Original Message -----
>>>> From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
>>>> To:
>>>> <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
>>>> Sent: Friday, December 29, 2006 10:42 PM
>>>> Subject: [itextsharp-questions] How to use memory stream with pdfwriter
>>>>
>>>>
>>>>> The following are 3 samples of code. The first one and the third on
>>>>> both
>>>>> work. The second one (even though there are bytes in the buffer)
>>>>> produces 0 bytes generated into the OutputStream.
>>>>>
>>>>> I am at a loss to understand why this is not working. I hope that
>>>>> someone can provide me with some guidance.
>>>>>
>>>> You can start by reading the documentation for MemoryStream. WriteTo()
>>>> will
>>>> throw an exception if the stream is closed, as it's the case. Use
>>>> ToArray().
>>>>
>>>> Paulo
>>>>
>>>>> Thank you,
>>>>> Dan Essin
>>>>>
>>>>> Send PdfRwiter tp Response.OutputStream
>>>>> ------------------------------------------------------------
>>>>> HttpResponse resp = this.Response;
>>>>> Document document = new Document();
>>>>>
>>>>>
>>>>> PdfWriter.GetInstance(document, resp.OutputStream);
>>>>> document.Open();
>>>>> document.Add(new Paragraph("Hello World"));
>>>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>>>> resp.ContentType = "application/pdf";
>>>>> document.Close();
>>>>>
>>>>>
>>>>> Send PdfWriter to Memory Stream, then to Web Page
>>>>> ------------------------------------------------------------
>>>>> HttpResponse resp = this.Response;
>>>>> Document document = new Document();
>>>>> System.IO.MemoryStream baos = new MemoryStream();
>>>>> PdfWriter.GetInstance(document, baos);
>>>>> document.Open();
>>>>> document.Add(new Paragraph("Hello World"));
>>>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>>>> resp.ContentType = "application/pdf";
>>>>> document.Close();
>>>>> baos.WriteTo(resp.OutputStream);
>>>>>
>>>>>
>>>>> Send PdfWriter FileStream
>>>>> ----------------------------------------------------------------
>>>>>
>>>>> HttpResponse resp = this.Response;
>>>>> Document document = new Document();
>>>>> FileStream fs = new FileStream("e://abcd.pdf", FileMode.Create);
>>>>> PdfWriter.GetInstance(document, fs);
>>>>> document.Open();
>>>>> document.Add(new Paragraph("Hello World"));
>>>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>>>> resp.ContentType = "application/pdf";
>>>>> document.Close();
>>>>> fs.Close();
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: "Alan" <alankeown-8ZADTxCf15/KZTGPsw8Sm/QIK84fMopw@public.gmane.org>
Happy New Year (to all those on the list who will be celebrating one)
I have a problem with path construction that is driving me nuts. My application takes geometry structures from a GIS and recreates them as pdf path statements.
I have successfully created documents with over 250,000 individual “LineTo” elements but I have one set that consistently fails at about 40,000 (These are totals for the document, not for individual paths.)
Does anyone know of any implementation limits that would cause ContentByte.LineTo() to throw an OutOfMemory exception? I have run out of ideas to investigate.
(BTW: I am using C# but I’m almost certain this is not a language/compiler/OS issue; I have done a lot of investigation in this regard.)
Cheers
AlanK
“…And then came the grandest idea of all!
We actually made a map of the country, on the scale of a mile to the mile!
Have you used it much? I enquired. It has never been spread out, yet, said Mein Herr:
the farmers objected:
they said it would cover the whole country, and shut out the sunlight!
So we now use the country itself, as its own map, and I assure you it does nearly as well…” — Lewis Carroll. The complete Sylvie and Bruno. 1893.
|
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: Daniel Essin <essin-EkmVulN54Sk@public.gmane.org>
In-reply-to: <00bb01c72ba2$b670f1a0$587ba8c0@psoaresk > References: <en45kj$qd9$1@sea.gmane.org ><00a901c72b9c$e31adeb0$587ba8c0@psoaresk > <en47cq$v0c$1@sea.gmane.org > <00bb01c72ba2$b670f1a0$587ba8c0@psoaresk >
You're absolutely right and it works!
I'm still not clear what event actually closes the stream. Is it the
document.Close()?
Thank you so much,
Dan
Paulo Soares wrote:
> When a MemoryStream is closed the only method that works is ToArray().
>
> document.Close();
> byte[] b = baos.ToArray();
> resp.AppendHeader("Content-Length", b.Length.ToString());
> resp.OutputStream.Write(b, 0, b.Length);
>
> Paulo
>
> ----- Original Message -----
> From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
> To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
> Sent: Friday, December 29, 2006 11:12 PM
> Subject: Re: [itextsharp-questions] How to use memory stream with pdfwriter
>
>
>> Thanks. You're right. It throwse an exception where it is currently
>> placed. What I was using during most of my testing was:
>>
>> baos.WriteTo(resp.OutputStream);
>> document.Close();
>>
>> Does this mean that closing the document, closes whatever stream is
>> associated with the Writer that is associated with the document?
>>
>> Also, I'm not clear in what way you are suggesting that I use ToArray().
>> I tried:
>> resp.AppendHeader("Content-Length", baos.Length.ToString());
>> resp.OutputStream.Write(baos.ToArray(), 0, (int)baos.Length);
>> document.Close();
>>
>> but it tells me that the "File is damaged and could not be repaired."
>>
>> Is that what you had in mind?
>>
>> I'm sorry for being so dense but I am new to this part of the class
>> library and I have no intuition about what is correct.
>>
>> Thanks for your help,
>> Dan
>>
>>
>>
>> Paulo Soares wrote:
>>> ----- Original Message -----
>>> From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
>>> To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
>>> Sent: Friday, December 29, 2006 10:42 PM
>>> Subject: [itextsharp-questions] How to use memory stream with pdfwriter
>>>
>>>
>>>> The following are 3 samples of code. The first one and the third on both
>>>> work. The second one (even though there are bytes in the buffer)
>>>> produces 0 bytes generated into the OutputStream.
>>>>
>>>> I am at a loss to understand why this is not working. I hope that
>>>> someone can provide me with some guidance.
>>>>
>>> You can start by reading the documentation for MemoryStream. WriteTo()
>>> will
>>> throw an exception if the stream is closed, as it's the case. Use
>>> ToArray().
>>>
>>> Paulo
>>>
>>>> Thank you,
>>>> Dan Essin
>>>>
>>>> Send PdfRwiter tp Response.OutputStream
>>>> ------------------------------------------------------------
>>>> HttpResponse resp = this.Response;
>>>> Document document = new Document();
>>>>
>>>>
>>>> PdfWriter.GetInstance(document, resp.OutputStream);
>>>> document.Open();
>>>> document.Add(new Paragraph("Hello World"));
>>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>>> resp.ContentType = "application/pdf";
>>>> document.Close();
>>>>
>>>>
>>>> Send PdfWriter to Memory Stream, then to Web Page
>>>> ------------------------------------------------------------
>>>> HttpResponse resp = this.Response;
>>>> Document document = new Document();
>>>> System.IO.MemoryStream baos = new MemoryStream();
>>>> PdfWriter.GetInstance(document, baos);
>>>> document.Open();
>>>> document.Add(new Paragraph("Hello World"));
>>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>>> resp.ContentType = "application/pdf";
>>>> document.Close();
>>>> baos.WriteTo(resp.OutputStream);
>>>>
>>>>
>>>> Send PdfWriter FileStream
>>>> ----------------------------------------------------------------
>>>>
>>>> HttpResponse resp = this.Response;
>>>> Document document = new Document();
>>>> FileStream fs = new FileStream("e://abcd.pdf", FileMode.Create);
>>>> PdfWriter.GetInstance(document, fs);
>>>> document.Open();
>>>> document.Add(new Paragraph("Hello World"));
>>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>>> resp.ContentType = "application/pdf";
>>>> document.Close();
>>>> fs.Close();
>>>>
>>>
>>> -------------------------------------------------------------------------
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>>> your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> itextsharp-questions mailing list
>> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <en45kj$qd9$1@sea.gmane.org ><00a901c72b9c$e31adeb0$587ba8c0@psoaresk > <en47cq$v0c$1@sea.gmane.org >
When a MemoryStream is closed the only method that works is ToArray().
document.Close();
byte[] b = baos.ToArray();
resp.AppendHeader("Content-Length", b.Length.ToString());
resp.OutputStream.Write(b, 0, b.Length);
Paulo
----- Original Message -----
From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Friday, December 29, 2006 11:12 PM
Subject: Re: [itextsharp-questions] How to use memory stream with pdfwriter
> Thanks. You're right. It throwse an exception where it is currently
> placed. What I was using during most of my testing was:
>
> baos.WriteTo(resp.OutputStream);
> document.Close();
>
> Does this mean that closing the document, closes whatever stream is
> associated with the Writer that is associated with the document?
>
> Also, I'm not clear in what way you are suggesting that I use ToArray().
> I tried:
> resp.AppendHeader("Content-Length", baos.Length.ToString());
> resp.OutputStream.Write(baos.ToArray(), 0, (int)baos.Length);
> document.Close();
>
> but it tells me that the "File is damaged and could not be repaired."
>
> Is that what you had in mind?
>
> I'm sorry for being so dense but I am new to this part of the class
> library and I have no intuition about what is correct.
>
> Thanks for your help,
> Dan
>
>
>
> Paulo Soares wrote:
>> ----- Original Message -----
>> From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
>> To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
>> Sent: Friday, December 29, 2006 10:42 PM
>> Subject: [itextsharp-questions] How to use memory stream with pdfwriter
>>
>>
>>> The following are 3 samples of code. The first one and the third on both
>>> work. The second one (even though there are bytes in the buffer)
>>> produces 0 bytes generated into the OutputStream.
>>>
>>> I am at a loss to understand why this is not working. I hope that
>>> someone can provide me with some guidance.
>>>
>>
>> You can start by reading the documentation for MemoryStream. WriteTo()
>> will
>> throw an exception if the stream is closed, as it's the case. Use
>> ToArray().
>>
>> Paulo
>>
>>> Thank you,
>>> Dan Essin
>>>
>>> Send PdfRwiter tp Response.OutputStream
>>> ------------------------------------------------------------
>>> HttpResponse resp = this.Response;
>>> Document document = new Document();
>>>
>>>
>>> PdfWriter.GetInstance(document, resp.OutputStream);
>>> document.Open();
>>> document.Add(new Paragraph("Hello World"));
>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>> resp.ContentType = "application/pdf";
>>> document.Close();
>>>
>>>
>>> Send PdfWriter to Memory Stream, then to Web Page
>>> ------------------------------------------------------------
>>> HttpResponse resp = this.Response;
>>> Document document = new Document();
>>> System.IO.MemoryStream baos = new MemoryStream();
>>> PdfWriter.GetInstance(document, baos);
>>> document.Open();
>>> document.Add(new Paragraph("Hello World"));
>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>> resp.ContentType = "application/pdf";
>>> document.Close();
>>> baos.WriteTo(resp.OutputStream);
>>>
>>>
>>> Send PdfWriter FileStream
>>> ----------------------------------------------------------------
>>>
>>> HttpResponse resp = this.Response;
>>> Document document = new Document();
>>> FileStream fs = new FileStream("e://abcd.pdf", FileMode.Create);
>>> PdfWriter.GetInstance(document, fs);
>>> document.Open();
>>> document.Add(new Paragraph("Hello World"));
>>> document.Add(new Paragraph(DateTime.Now.ToString()));
>>> resp.ContentType = "application/pdf";
>>> document.Close();
>>> fs.Close();
>>>
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: Daniel Essin <essin-EkmVulN54Sk@public.gmane.org>
In-reply-to: <00a901c72b9c$e31adeb0$587ba8c0@psoaresk > References: <en45kj$qd9$1@sea.gmane.org > <00a901c72b9c$e31adeb0$587ba8c0@psoaresk >
Thanks. You're right. It throwse an exception where it is currently
placed. What I was using during most of my testing was:
baos.WriteTo(resp.OutputStream);
document.Close();
Does this mean that closing the document, closes whatever stream is
associated with the Writer that is associated with the document?
Also, I'm not clear in what way you are suggesting that I use ToArray().
I tried:
resp.AppendHeader("Content-Length", baos.Length.ToString());
resp.OutputStream.Write(baos.ToArray(), 0, (int)baos.Length);
document.Close();
but it tells me that the "File is damaged and could not be repaired."
Is that what you had in mind?
I'm sorry for being so dense but I am new to this part of the class
library and I have no intuition about what is correct.
Thanks for your help,
Dan
Paulo Soares wrote:
> ----- Original Message -----
> From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
> To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
> Sent: Friday, December 29, 2006 10:42 PM
> Subject: [itextsharp-questions] How to use memory stream with pdfwriter
>
>
>> The following are 3 samples of code. The first one and the third on both
>> work. The second one (even though there are bytes in the buffer)
>> produces 0 bytes generated into the OutputStream.
>>
>> I am at a loss to understand why this is not working. I hope that
>> someone can provide me with some guidance.
>>
>
> You can start by reading the documentation for MemoryStream. WriteTo() will
> throw an exception if the stream is closed, as it's the case. Use ToArray().
>
> Paulo
>
>> Thank you,
>> Dan Essin
>>
>> Send PdfRwiter tp Response.OutputStream
>> ------------------------------------------------------------
>> HttpResponse resp = this.Response;
>> Document document = new Document();
>>
>>
>> PdfWriter.GetInstance(document, resp.OutputStream);
>> document.Open();
>> document.Add(new Paragraph("Hello World"));
>> document.Add(new Paragraph(DateTime.Now.ToString()));
>> resp.ContentType = "application/pdf";
>> document.Close();
>>
>>
>> Send PdfWriter to Memory Stream, then to Web Page
>> ------------------------------------------------------------
>> HttpResponse resp = this.Response;
>> Document document = new Document();
>> System.IO.MemoryStream baos = new MemoryStream();
>> PdfWriter.GetInstance(document, baos);
>> document.Open();
>> document.Add(new Paragraph("Hello World"));
>> document.Add(new Paragraph(DateTime.Now.ToString()));
>> resp.ContentType = "application/pdf";
>> document.Close();
>> baos.WriteTo(resp.OutputStream);
>>
>>
>> Send PdfWriter FileStream
>> ----------------------------------------------------------------
>>
>> HttpResponse resp = this.Response;
>> Document document = new Document();
>> FileStream fs = new FileStream("e://abcd.pdf", FileMode.Create);
>> PdfWriter.GetInstance(document, fs);
>> document.Open();
>> document.Add(new Paragraph("Hello World"));
>> document.Add(new Paragraph(DateTime.Now.ToString()));
>> resp.ContentType = "application/pdf";
>> document.Close();
>> fs.Close();
>>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <en45kj$qd9$1@sea.gmane.org >
----- Original Message -----
From: "Daniel Essin" <essin-EkmVulN54Sk@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Friday, December 29, 2006 10:42 PM
Subject: [itextsharp-questions] How to use memory stream with pdfwriter
> The following are 3 samples of code. The first one and the third on both
> work. The second one (even though there are bytes in the buffer)
> produces 0 bytes generated into the OutputStream.
>
> I am at a loss to understand why this is not working. I hope that
> someone can provide me with some guidance.
>
You can start by reading the documentation for MemoryStream. WriteTo() will
throw an exception if the stream is closed, as it's the case. Use ToArray().
Paulo
> Thank you,
> Dan Essin
>
> Send PdfRwiter tp Response.OutputStream
> ------------------------------------------------------------
> HttpResponse resp = this.Response;
> Document document = new Document();
>
>
> PdfWriter.GetInstance(document, resp.OutputStream);
> document.Open();
> document.Add(new Paragraph("Hello World"));
> document.Add(new Paragraph(DateTime.Now.ToString()));
> resp.ContentType = "application/pdf";
> document.Close();
>
>
> Send PdfWriter to Memory Stream, then to Web Page
> ------------------------------------------------------------
> HttpResponse resp = this.Response;
> Document document = new Document();
> System.IO.MemoryStream baos = new MemoryStream();
> PdfWriter.GetInstance(document, baos);
> document.Open();
> document.Add(new Paragraph("Hello World"));
> document.Add(new Paragraph(DateTime.Now.ToString()));
> resp.ContentType = "application/pdf";
> document.Close();
> baos.WriteTo(resp.OutputStream);
>
>
> Send PdfWriter FileStream
> ----------------------------------------------------------------
>
> HttpResponse resp = this.Response;
> Document document = new Document();
> FileStream fs = new FileStream("e://abcd.pdf", FileMode.Create);
> PdfWriter.GetInstance(document, fs);
> document.Open();
> document.Add(new Paragraph("Hello World"));
> document.Add(new Paragraph(DateTime.Now.ToString()));
> resp.ContentType = "application/pdf";
> document.Close();
> fs.Close();
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: Daniel Essin <essin-EkmVulN54Sk@public.gmane.org>
The following are 3 samples of code. The first one and the third on both
work. The second one (even though there are bytes in the buffer)
produces 0 bytes generated into the OutputStream.
I am at a loss to understand why this is not working. I hope that
someone can provide me with some guidance.
Thank you,
Dan Essin
Send PdfRwiter tp Response.OutputStream
------------------------------------------------------------
HttpResponse resp = this.Response;
Document document = new Document();
PdfWriter.GetInstance(document, resp.OutputStream);
document.Open();
document.Add(new Paragraph("Hello World"));
document.Add(new Paragraph(DateTime.Now.ToString()));
resp.ContentType = "application/pdf";
document.Close();
Send PdfWriter to Memory Stream, then to Web Page
------------------------------------------------------------
HttpResponse resp = this.Response;
Document document = new Document();
System.IO.MemoryStream baos = new MemoryStream();
PdfWriter.GetInstance(document, baos);
document.Open();
document.Add(new Paragraph("Hello World"));
document.Add(new Paragraph(DateTime.Now.ToString()));
resp.ContentType = "application/pdf";
document.Close();
baos.WriteTo(resp.OutputStream);
Send PdfWriter FileStream
----------------------------------------------------------------
HttpResponse resp = this.Response;
Document document = new Document();
FileStream fs = new FileStream("e://abcd.pdf", FileMode.Create);
PdfWriter.GetInstance(document, fs);
document.Open();
document.Add(new Paragraph("Hello World"));
document.Add(new Paragraph(DateTime.Now.ToString()));
resp.ContentType = "application/pdf";
document.Close();
fs.Close();
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: "Ross Presser" <rpresser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
In-reply-to: <003301c72b5d$cb6debc0$587ba8c0@psoaresk > References: <002901c72b25$329c8010$0200a8c0@matthew > <656f8fef0612290630g15e8789eg41b5757bca8b9ca3@mail.gmail.com > <003301c72b5d$cb6debc0$587ba8c0@psoaresk >
Oh, I didn't realize it was always the same copy. I guess my mistake
in the past was that I kept creating another PDFReader for each page
while inside the loop.
On 12/29/06, Paulo Soares <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
wrote:
> It's always the same copy but it's a sound advice, nevertheless.
>
> Paulo
>
> ----- Original Message -----
> From: "Ross Presser" <rpresser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> To: "Post all your questions about iTextSharp here"
> <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
> Sent: Friday, December 29, 2006 2:30 PM
> Subject: Re: [itextsharp-questions] how to mail merge using a template
> anddatabase (new idea)
>
>
> > One suggestion: at the moment you are calling GetImportedPage
> > separately for every page. In my experience this results in a separate
> > copy within the PDF structure for each page. To cut file size further,
> > so the imported page is only in the file once, call GetImportedPage
> > once only -- right after opening the PDFWriter, storing the template
> > in a variable; then use AddTemplate on each page.
> >
> > On 12/29/06, Matthew
> > <info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org> wrote:
> >> OK, I think I have it sorted now. I can create 1000 pages in under 2
> >> seconds
> >> and the end document is about 500k (I have a small logo in the header of
> >> each page from the Do4.pdf). This performance and resulting file size is
> >> great.
> >>
> >>
> >>
> >> Thanks again for the help.
> >>
> >>
> >>
> >> Here is my completed test testing example..
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> private Stopwatch stopWatch;
> >>
> >>
> >>
> >> protected void Page_Load(object sender, EventArgs e)
> >>
> >> {
> >>
> >> stopWatch = new Stopwatch();
> >>
> >>
> >>
> >> string formFile = @"c:/Doc4.pdf";
> >>
> >> string newFile = @"c:/new.pdf";
> >>
> >> PdfReader formReaderOriginal = new PdfReader(formFile);
> >>
> >> Document doc = new Document();
> >>
> >> //PdfCopy pdfcopy = new PdfCopy(doc, new FileStream(newFile,
> >> FileMode.Create));
> >>
> >>
> >>
> >> PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream(newFile,
> >> FileMode.Create));
> >>
> >>
> >>
> >>
> >>
> >> Chunk space = new Chunk(' ');
> >>
> >> String text;
> >>
> >> Phrase phrase1;
> >>
> >> Phrase phrase2;
> >>
> >> Phrase phrase3;
> >>
> >> Paragraph paragraph;
> >>
> >>
> >>
> >> doc.Open();
> >>
> >>
> >>
> >>
> >>
> >> stopWatch.Start();
> >>
> >> for (int i = 0; i < 1000; i++)
> >>
> >> {
> >>
> >>
> >>
> >> //pdfcopy.AddPage(pdfcopy.GetImportedPage(formReaderOriginal, 1));
> >>
> >>
> >>
> >> doc.NewPage();
> >>
> >>
> >>
> >> PdfContentByte cb = writer.DirectContentUnder;
> >>
> >> cb.AddTemplate(writer.GetImportedPage(formReaderOriginal, 1),0.0f,0.0f);
> >>
> >>
> >>
> >> text = "Quick brown fox jumps over the lazy dog.";
> >>
> >> phrase1 = new Phrase(text);
> >>
> >> phrase2 = new Phrase(new Chunk(text, new Font(Font.TIMES_ROMAN)));
> >>
> >> phrase3 = new Phrase(text, new Font(Font.COURIER));
> >>
> >> paragraph = new Paragraph();
> >>
> >>
> >>
> >> paragraph.Add(space);
> >>
> >> //some space at the top
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >>
> >>
> >> paragraph.Add(phrase1);
> >>
> >> paragraph.Add(space);
> >>
> >> paragraph.Add(phrase2);
> >>
> >> paragraph.Add(space);
> >>
> >> paragraph.Add(phrase3);
> >>
> >>
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >> doc.Add(paragraph);
> >>
> >>
> >>
> >> //pdfcopy.FreeReader(formReaderOriginal);
> >>
> >>
> >>
> >> }
> >>
> >> stopWatch.Stop();
> >>
> >>
> >>
> >> doc.Close();
> >>
> >>
> >>
> >> TimeSpan ts = stopWatch.Elapsed;
> >>
> >>
> >>
> >> timeResult.Text = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
> >>
> >> ts.Hours, ts.Minutes, ts.Seconds,
> >>
> >> ts.Milliseconds / 10);
> >>
> >>
> >>
> >> }
> >>
> >>
> >>
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > itextsharp-questions mailing list
> > itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: Daniel Essin <essin-EkmVulN54Sk@public.gmane.org>
I originally posted this on what I now realize was the java group. I am
reposting it here because it is really a .NET problem. Any help would be
appreciated.
I have a problem. The code below produces a stream that, when
received by acrobat, results in a message that says "File does not begin
with '%PDF-'."
This is the code:
HttpResponse resp = this.Response;
Document document = new Document();
System.IO.MemoryStream baos = new MemoryStream();
PdfWriter.GetInstance(document, baos);
resp.AppendHeader("Content-Length", baos.Length.ToString());
document.Open();
document.Add(new Paragraph("Hello World"));
document.Add(new Paragraph(DateTime.Now.ToLongTimeString()));
document.Close();
resp.ContentType = "application/pdf";
resp.Write(baos.ToArray());
resp.Flush();
Thank you,
Dan Essin
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <002901c72b25$329c8010$0200a8c0@matthew > <656f8fef0612290630g15e8789eg41b5757bca8b9ca3@mail.gmail.com >
It's always the same copy but it's a sound advice, nevertheless.
Paulo
----- Original Message -----
From: "Ross Presser" <rpresser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Post all your questions about iTextSharp here"
<itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Friday, December 29, 2006 2:30 PM
Subject: Re: [itextsharp-questions] how to mail merge using a template
anddatabase (new idea)
> One suggestion: at the moment you are calling GetImportedPage
> separately for every page. In my experience this results in a separate
> copy within the PDF structure for each page. To cut file size further,
> so the imported page is only in the file once, call GetImportedPage
> once only -- right after opening the PDFWriter, storing the template
> in a variable; then use AddTemplate on each page.
>
> On 12/29/06, Matthew
> <info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org> wrote:
>> OK, I think I have it sorted now. I can create 1000 pages in under 2
>> seconds
>> and the end document is about 500k (I have a small logo in the header of
>> each page from the Do4.pdf). This performance and resulting file size is
>> great.
>>
>>
>>
>> Thanks again for the help.
>>
>>
>>
>> Here is my completed test testing example..
>>
>>
>>
>>
>>
>>
>>
>> private Stopwatch stopWatch;
>>
>>
>>
>> protected void Page_Load(object sender, EventArgs e)
>>
>> {
>>
>> stopWatch = new Stopwatch();
>>
>>
>>
>> string formFile = @"c:/Doc4.pdf";
>>
>> string newFile = @"c:/new.pdf";
>>
>> PdfReader formReaderOriginal = new PdfReader(formFile);
>>
>> Document doc = new Document();
>>
>> //PdfCopy pdfcopy = new PdfCopy(doc, new FileStream(newFile,
>> FileMode.Create));
>>
>>
>>
>> PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream(newFile,
>> FileMode.Create));
>>
>>
>>
>>
>>
>> Chunk space = new Chunk(' ');
>>
>> String text;
>>
>> Phrase phrase1;
>>
>> Phrase phrase2;
>>
>> Phrase phrase3;
>>
>> Paragraph paragraph;
>>
>>
>>
>> doc.Open();
>>
>>
>>
>>
>>
>> stopWatch.Start();
>>
>> for (int i = 0; i < 1000; i++)
>>
>> {
>>
>>
>>
>> //pdfcopy.AddPage(pdfcopy.GetImportedPage(formReaderOriginal, 1));
>>
>>
>>
>> doc.NewPage();
>>
>>
>>
>> PdfContentByte cb = writer.DirectContentUnder;
>>
>> cb.AddTemplate(writer.GetImportedPage(formReaderOriginal, 1),0.0f,0.0f);
>>
>>
>>
>> text = "Quick brown fox jumps over the lazy dog.";
>>
>> phrase1 = new Phrase(text);
>>
>> phrase2 = new Phrase(new Chunk(text, new Font(Font.TIMES_ROMAN)));
>>
>> phrase3 = new Phrase(text, new Font(Font.COURIER));
>>
>> paragraph = new Paragraph();
>>
>>
>>
>> paragraph.Add(space);
>>
>> //some space at the top
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>>
>>
>> paragraph.Add(phrase1);
>>
>> paragraph.Add(space);
>>
>> paragraph.Add(phrase2);
>>
>> paragraph.Add(space);
>>
>> paragraph.Add(phrase3);
>>
>>
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>> doc.Add(paragraph);
>>
>>
>>
>> //pdfcopy.FreeReader(formReaderOriginal);
>>
>>
>>
>> }
>>
>> stopWatch.Stop();
>>
>>
>>
>> doc.Close();
>>
>>
>>
>> TimeSpan ts = stopWatch.Elapsed;
>>
>>
>>
>> timeResult.Text = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
>>
>> ts.Hours, ts.Minutes, ts.Seconds,
>>
>> ts.Milliseconds / 10);
>>
>>
>>
>> }
>>
>>
>>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: "Ross Presser" <rpresser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
In-reply-to: <002901c72b25$329c8010$0200a8c0@matthew > References: <002901c72b25$329c8010$0200a8c0@matthew >
One suggestion: at the moment you are calling GetImportedPage
separately for every page. In my experience this results in a separate
copy within the PDF structure for each page. To cut file size further,
so the imported page is only in the file once, call GetImportedPage
once only -- right after opening the PDFWriter, storing the template
in a variable; then use AddTemplate on each page.
On 12/29/06, Matthew
<info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org> wrote:
> OK, I think I have it sorted now. I can create 1000 pages in under 2 seconds
> and the end document is about 500k (I have a small logo in the header of
> each page from the Do4.pdf). This performance and resulting file size is
> great.
>
>
>
> Thanks again for the help.
>
>
>
> Here is my completed test testing example..
>
>
>
>
>
>
>
> private Stopwatch stopWatch;
>
>
>
> protected void Page_Load(object sender, EventArgs e)
>
> {
>
> stopWatch = new Stopwatch();
>
>
>
> string formFile = @"c:/Doc4.pdf";
>
> string newFile = @"c:/new.pdf";
>
> PdfReader formReaderOriginal = new PdfReader(formFile);
>
> Document doc = new Document();
>
> //PdfCopy pdfcopy = new PdfCopy(doc, new FileStream(newFile,
> FileMode.Create));
>
>
>
> PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream(newFile,
> FileMode.Create));
>
>
>
>
>
> Chunk space = new Chunk(' ');
>
> String text;
>
> Phrase phrase1;
>
> Phrase phrase2;
>
> Phrase phrase3;
>
> Paragraph paragraph;
>
>
>
> doc.Open();
>
>
>
>
>
> stopWatch.Start();
>
> for (int i = 0; i < 1000; i++)
>
> {
>
>
>
> //pdfcopy.AddPage(pdfcopy.GetImportedPage(formReaderOriginal, 1));
>
>
>
> doc.NewPage();
>
>
>
> PdfContentByte cb = writer.DirectContentUnder;
>
> cb.AddTemplate(writer.GetImportedPage(formReaderOriginal, 1),0.0f,0.0f);
>
>
>
> text = "Quick brown fox jumps over the lazy dog.";
>
> phrase1 = new Phrase(text);
>
> phrase2 = new Phrase(new Chunk(text, new Font(Font.TIMES_ROMAN)));
>
> phrase3 = new Phrase(text, new Font(Font.COURIER));
>
> paragraph = new Paragraph();
>
>
>
> paragraph.Add(space);
>
> //some space at the top
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
>
>
> paragraph.Add(phrase1);
>
> paragraph.Add(space);
>
> paragraph.Add(phrase2);
>
> paragraph.Add(space);
>
> paragraph.Add(phrase3);
>
>
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
> doc.Add(paragraph);
>
>
>
> //pdfcopy.FreeReader(formReaderOriginal);
>
>
>
> }
>
> stopWatch.Stop();
>
>
>
> doc.Close();
>
>
>
> TimeSpan ts = stopWatch.Elapsed;
>
>
>
> timeResult.Text = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
>
> ts.Hours, ts.Minutes, ts.Seconds,
>
> ts.Milliseconds / 10);
>
>
>
> }
>
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 29, 2006 From: "Matthew" <info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org>
OK, I think I have it sorted now. I can create 1000 pages in under 2 seconds and the end document is about 500k (I have a small logo in the header of each page from the Do4.pdf). This performance and resulting file size is great.
Thanks again for the help.
Here is my completed test testing example….
private Stopwatch stopWatch;
protected void Page_Load(object sender, EventArgs e)
{
stopWatch = new Stopwatch();
string formFile = @"c:/Doc4.pdf";
string newFile = @"c:/new.pdf";
PdfReader formReaderOriginal = new PdfReader(formFile);
Document doc = new Document();
//PdfCopy pdfcopy = new PdfCopy(doc, new FileStream(newFile, FileMode.Create));
PdfWriter writer = PdfWriter.GetInstance(doc, new FileStream(newFile, FileMode.Create));
Chunk space = new Chunk(' ');
String text;
Phrase phrase1;
Phrase phrase2;
Phrase phrase3;
Paragraph paragraph;
doc.Open();
stopWatch.Start();
for (int i = 0; i < 1000; i++)
{
//pdfcopy.AddPage(pdfcopy.GetImportedPage(formReaderOriginal, 1));
doc.NewPage();
PdfContentByte cb = writer.DirectContentUnder;
cb.AddTemplate(writer.GetImportedPage(formReaderOriginal, 1),0.0f,0.0f);
text = "Quick brown fox jumps over the lazy dog.";
phrase1 = new Phrase(text);
phrase2 = new Phrase(new Chunk(text, new Font(Font.TIMES_ROMAN)));
phrase3 = new Phrase(text, new Font(Font.COURIER));
paragraph = new Paragraph();
paragraph.Add(space);
//some space at the top
doc.Add(paragraph);
doc.Add(paragraph);
doc.Add(paragraph);
doc.Add(paragraph);
doc.Add(paragraph);
paragraph.Add(phrase1);
paragraph.Add(space);
paragraph.Add(phrase2);
paragraph.Add(space);
paragraph.Add(phrase3);
doc.Add(paragraph);
doc.Add(paragraph);
doc.Add(paragraph);
doc.Add(paragraph);
doc.Add(paragraph);
doc.Add(paragraph);
doc.Add(paragraph);
doc.Add(paragraph);
doc.Add(paragraph);
doc.Add(paragraph);
//pdfcopy.FreeReader(formReaderOriginal);
}
stopWatch.Stop();
doc.Close();
TimeSpan ts = stopWatch.Elapsed;
timeResult.Text = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
ts.Hours, ts.Minutes, ts.Seconds,
ts.Milliseconds / 10);
}
|
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 28, 2006
-
Date: December 28, 2006 From: "Matthew" <info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org>
The following code (like the previous) is run in the page_load event of a
web form. At the moment it creates 35 pages based on the pdf form Doc4.pdf.
I am trying to then write some paragraphs on the page, the result is that I
don't see the paragraphs, just the source form.
After pdfcopy.AddPage, how do I then write some dynamic text into the
document being created?
This API is the leading contender at the moment for a project I'm working
on, so far it looks ideal (performance wise it is very good).
Cheers
private Stopwatch stopWatch;
protected void Page_Load(object sender, EventArgs e)
{
stopWatch = new Stopwatch();
string formFile = @"c:/Doc4.pdf";
string newFile = @"c:/new.pdf";
PdfReader formReaderOriginal = new PdfReader(formFile);
Document doc = new Document();
PdfCopy pdfcopy = new PdfCopy(doc, new FileStream(newFile,FileMode.Create));
Chunk space = new Chunk(' ');
String text;
Phrase phrase1;
Phrase phrase2;
Phrase phrase3;
Paragraph paragraph;
doc.Open();
stopWatch.Start();
for (int i = 0; i < 35; i++)
{
pdfcopy.AddPage(pdfcopy.GetImportedPage(formReaderOriginal, 1));
pdfcopy.NewPage();
text = "Quick brown fox jumps over the lazy dog.";
phrase1 = new Phrase(text);
phrase2 = new Phrase(new Chunk(text, new Font(Font.TIMES_ROMAN)));
phrase3 = new Phrase(text, new Font(Font.COURIER));
paragraph = new Paragraph();
paragraph.Add(phrase1);
paragraph.Add(space);
paragraph.Add(phrase2);
paragraph.Add(space);
paragraph.Add(phrase3);
pdfcopy.Add(paragraph);
pdfcopy.Add(paragraph);
pdfcopy.FreeReader(formReaderOriginal);
}
stopWatch.Stop();
doc.Close();
TimeSpan ts = stopWatch.Elapsed;
timeResult.Text = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
ts.Hours, ts.Minutes, ts.Seconds,
ts.Milliseconds / 10);
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 28, 2006 From: "Matthew" <info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org>
Thanks for the extra tip.
I'm finding that if I have an initiall input PDF file size of around 100k
(and this is just a page with two form fields on it), that when I create a
new 1000 page pdf with the fields filled out on each page that the final
file size is about 98MB. Any tips on how to reduce this? There are no
graphics in the source PDF.
Cheers
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 28, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <005a01c72ad4$e8b41da0$0600a8c0@matthew >
After using the reader free the memory with:
PdfReader r = new PdfReader(ms.ToArray());
pdfcopy.AddPage(pdfcopy.GetImportedPage(r, 1));
pdfcopy.FreeReader(r);
It's not important for 100 pages but you'll find it useful for 10000 pages.
Paulo
----- Original Message -----
From: "Matthew"
<info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Thursday, December 28, 2006 11:07 PM
Subject: Re: [itextsharp-questions] how to mail merge using a template
anddatabase
> Thanks very much for the help. This is what I have now, just running a
> dummy
> loop, I get 100 pages with unique data on each page.
>
> protected void Page_Load(object sender, EventArgs e)
> {
> string formFile = @"c:/form.pdf";
> string newFile = @"c:/new.pdf";
> PdfReader formReaderOriginal = new PdfReader(formFile);
> PdfReader formReader;
> Document doc = new Document();
> MemoryStream ms;
> PdfCopy pdfcopy = new PdfCopy(doc, new FileStream(newFile,
> FileMode.Create));
> PdfStamper stamper;
> AcroFields fields;
> doc.Open();
>
> for (int i = 0; i <= 100; i++)
> {
> //pass 1
> ms = new MemoryStream();
> formReader = new PdfReader(formReaderOriginal);
> stamper = new PdfStamper(formReader, ms);
> fields = stamper.AcroFields;
> fields.SetField("name", "John Doe " + i.ToString());
> fields.SetField("address", "2 Milky Way, London");
> stamper.FormFlattening = true;
> stamper.Close();
> PdfReader r = new PdfReader(ms.ToArray());
> pdfcopy.AddPage(pdfcopy.GetImportedPage(r, 1));
> }
>
> doc.Close();
> }
> doc.Close();
>
> This correctly gives me what I want, I will look at some optimisations
> later.
>
> Thanks again.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 28, 2006 From: "Matthew" <info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org>
Thanks very much for the help. This is what I have now, just running a dummy
loop, I get 100 pages with unique data on each page.
protected void Page_Load(object sender, EventArgs e)
{
string formFile = @"c:/form.pdf";
string newFile = @"c:/new.pdf";
PdfReader formReaderOriginal = new PdfReader(formFile);
PdfReader formReader;
Document doc = new Document();
MemoryStream ms;
PdfCopy pdfcopy = new PdfCopy(doc, new FileStream(newFile,
FileMode.Create));
PdfStamper stamper;
AcroFields fields;
doc.Open();
for (int i = 0; i <= 100; i++)
{
//pass 1
ms = new MemoryStream();
formReader = new PdfReader(formReaderOriginal);
stamper = new PdfStamper(formReader, ms);
fields = stamper.AcroFields;
fields.SetField("name", "John Doe " + i.ToString());
fields.SetField("address", "2 Milky Way, London");
stamper.FormFlattening = true;
stamper.Close();
PdfReader r = new PdfReader(ms.ToArray());
pdfcopy.AddPage(pdfcopy.GetImportedPage(r, 1));
}
doc.Close();
}
doc.Close();
This correctly gives me what I want, I will look at some optimisations
later.
Thanks again.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 28, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <000901c72a82$45924f40$0600a8c0@matthew >
Adapting your example:
protected void Page_Load(object sender, EventArgs e)
{
string formFile = @"c:/form.pdf";
string newFile = @"c:/new.pdf";
string tempFile = @"c:/temp.pdf";
PdfReader formReaderOriginal = new PdfReader(formFile);
PdfReader formReader = new PdfReader(formReaderOriginal); //faster
than reading from file
MemoryStream ms = new MemoryStream();
PdfStamper stamper = new PdfStamper(formReader, ms);
AcroFields fields;
fields = stamper.AcroFields;
fields.SetField("name", "John Doe");
fields.SetField("address", "2 Milky Way, London");
stamper.FormFlattening = true;
stamper.Close();
PdfReader r = new PdfReader(ms.ToArray());
Document doc = new Document();
PdfCopy pdfcopy = new PdfCopy(doc, new FileStream(newFile,
FileMode.Create));
doc.Open();
pdfcopy.AddPage(pdfcopy.GetImportedPage(r, 1));
doc.Close();
}
Paulo
----- Original Message -----
From: "Matthew"
<info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Thursday, December 28, 2006 1:15 PM
Subject: Re: [itextsharp-questions] how to mail merge using a template
anddatabase
>
> Quote: You fill and flatten each template with PdfStamper and add it to
> PdfCopy.
>
> OK, Thanks for the clue. This is what I have so far
>
> protected void Page_Load(object sender, EventArgs e)
> {
>
> string formFile = @"c:/form.pdf";
> string newFile = @"c:/new.pdf";
> string tempFile = @"c:/temp.pdf";
> PdfReader formReader = new PdfReader(formFile);
>
> //MemoryStream ms = new MemoryStream();
> PdfStamper stamper = new PdfStamper(formReader, new
> FileStream(tempFile, FileMode.Create));
>
> AcroFields fields;
> fields = stamper.AcroFields;
> fields.SetField("name", "John Doe");
> fields.SetField("address", "2 Milky Way, London");
> stamper.FormFlattening = true;
>
> Document doc = new Document();
> PdfCopy pdfcopy = new PdfCopy(doc, new FileStream(newFile,
> FileMode.Create));
> doc.Open();
>
> pdfcopy.AddPage(stamper.Writer.GetImportedPage(formReader, 1));
>
> doc.Close();
>
> stamper.Close();
> }
>
> What I'm stuck on is how to keep using the stamper to fill out the form
> and
> add it to the new PDF. What I have here doesn't work in a number of areas.
>
> 1. I'm creating a temporary file, should I use a stream, or can I populate
> the form fields in another way
>
> 2. pdfcopy.AddPage(stamper.Writer.GetImportedPage(formReader, 1)); This
> adds
> a new page but it has no fields filled out in it, so I'm just trying to
> guess here how this might work.
>
> Could you spare some seudo-code or c# example?
>
> Thanks again.
>
>
> uote: You should buy the book. The examples and explanations are in Java
> but
> it's
> trivial to adapt them to C# or VB.NET. For example, what you're asking is
> described in chapter 16.1.
>
> OK, I have orderd the book but have about 14 days before it arrives. Any
> help in the mean time would be great.
>
> Cheers.
>
>
> -----Original Message-----
> From: Matthew
> [mailto:info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org]
> Sent: Wednesday, 27 December 2006 10:10 PM
> To: 'itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org'
> Subject: how to mail merge using a template and database
>
> Hello
>
> I have only been working with iTextSharp for today and am really impressed
> with its wide range of capabilities. Please forgive me if this has been
> answered already, I have searched the mailing list for about an hour with
> no
> luck.
>
> I would like to take a pdf form creating in adobe designer and the as I
> itterate through records in a database create a single multi page pdf
> document with each record using a copy of the template. This functionality
> is similar to a mail merge operation suing MSWord. At the moment I can
> read
> the template and fill out the form fields once using PdfStamper, what I'm
> stuck on is how to get the template multiple times and use it to create
> multiple pages, I guess I have to flatten at the end of each record so
> that
> the next time I use SetField() there is only one instance.
>
> Anyway, any help or rough design on how this would work would be great.
>
> Should I order the book iText In Action, is it applicable for iTextSharp?
>
>
> Cheers
>
> Matthew
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 28, 2006 From: "Matthew" <info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org>
In-reply-to:
Quote: You fill and flatten each template with PdfStamper and add it to
PdfCopy.
OK, Thanks for the clue. This is what I have so far
protected void Page_Load(object sender, EventArgs e)
{
string formFile = @"c:/form.pdf";
string newFile = @"c:/new.pdf";
string tempFile = @"c:/temp.pdf";
PdfReader formReader = new PdfReader(formFile);
//MemoryStream ms = new MemoryStream();
PdfStamper stamper = new PdfStamper(formReader, new
FileStream(tempFile, FileMode.Create));
AcroFields fields;
fields = stamper.AcroFields;
fields.SetField("name", "John Doe");
fields.SetField("address", "2 Milky Way, London");
stamper.FormFlattening = true;
Document doc = new Document();
PdfCopy pdfcopy = new PdfCopy(doc, new FileStream(newFile,
FileMode.Create));
doc.Open();
pdfcopy.AddPage(stamper.Writer.GetImportedPage(formReader, 1));
doc.Close();
stamper.Close();
}
What I'm stuck on is how to keep using the stamper to fill out the form and
add it to the new PDF. What I have here doesn't work in a number of areas.
1. I'm creating a temporary file, should I use a stream, or can I populate
the form fields in another way
2. pdfcopy.AddPage(stamper.Writer.GetImportedPage(formReader, 1)); This adds
a new page but it has no fields filled out in it, so I'm just trying to
guess here how this might work.
Could you spare some seudo-code or c# example?
Thanks again.
uote: You should buy the book. The examples and explanations are in Java but
it's
trivial to adapt them to C# or VB.NET. For example, what you're asking is
described in chapter 16.1.
OK, I have orderd the book but have about 14 days before it arrives. Any
help in the mean time would be great.
Cheers.
-----Original Message-----
From: Matthew
[mailto:info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org]
Sent: Wednesday, 27 December 2006 10:10 PM
To: 'itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org'
Subject: how to mail merge using a template and database
Hello
I have only been working with iTextSharp for today and am really impressed
with its wide range of capabilities. Please forgive me if this has been
answered already, I have searched the mailing list for about an hour with no
luck.
I would like to take a pdf form creating in adobe designer and the as I
itterate through records in a database create a single multi page pdf
document with each record using a copy of the template. This functionality
is similar to a mail merge operation suing MSWord. At the moment I can read
the template and fill out the form fields once using PdfStamper, what I'm
stuck on is how to get the template multiple times and use it to create
multiple pages, I guess I have to flatten at the end of each record so that
the next time I use SetField() there is only one instance.
Anyway, any help or rough design on how this would work would be great.
Should I order the book iText In Action, is it applicable for iTextSharp?
Cheers
Matthew
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 27, 2006
-
Date: December 27, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <002801c729a7$83d4ff40$0300a8c0@matthew >
----- Original Message -----
From: "Matthew"
<info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Wednesday, December 27, 2006 11:09 AM
Subject: [itextsharp-questions] how to mail merge using a template
anddatabase
> Hello
>
> I have only been working with iTextSharp for today and am really impressed
> with its wide range of capabilities. Please forgive me if this has been
> answered already, I have searched the mailing list for about an hour with
> no
> luck.
>
> I would like to take a pdf form creating in adobe designer and the as I
> itterate through records in a database create a single multi page pdf
> document with each record using a copy of the template. This functionality
> is similar to a mail merge operation suing MSWord. At the moment I can
> read
> the template and fill out the form fields once using PdfStamper, what I'm
> stuck on is how to get the template multiple times and use it to create
> multiple pages, I guess I have to flatten at the end of each record so
> that
> the next time I use SetField() there is only one instance.
>
You fill and flatten each template with PdfStamper and add it to PdfCopy.
> Anyway, any help or rough design on how this would work would be great.
>
> Should I order the book iText In Action, is it applicable for iTextSharp?
You should buy the book. The examples and explanations are in Java but it's
trivial to adapt them to C# or VB.NET. For example, what you're asking is
described in chapter 16.1.
Paulo
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 27, 2006 From: "Matthew" <info-6agwQxOQk06Lex4XwPKB7838oqBP5Fe8KQEueVp/e6I@public.gmane.org>
Hello
I have only been working with iTextSharp for today and am really impressed
with its wide range of capabilities. Please forgive me if this has been
answered already, I have searched the mailing list for about an hour with no
luck.
I would like to take a pdf form creating in adobe designer and the as I
itterate through records in a database create a single multi page pdf
document with each record using a copy of the template. This functionality
is similar to a mail merge operation suing MSWord. At the moment I can read
the template and fill out the form fields once using PdfStamper, what I'm
stuck on is how to get the template multiple times and use it to create
multiple pages, I guess I have to flatten at the end of each record so that
the next time I use SetField() there is only one instance.
Anyway, any help or rough design on how this would work would be great.
Should I order the book iText In Action, is it applicable for iTextSharp?
Cheers
Matthew
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 19, 2006
-
Date: December 19, 2006 From: xpicio <xpicio-VGgt2q2+T+FeoWH0uzbU5w@public.gmane.org>
Hi,
there is a way to use escape character "/t" inside a PdfPCell object?
In the follow example the "/t" characthers are ignored.
Phrase phrase = new Phrase("/t/tSome Text....", defaultFont);
PdfPTable pdfTable = new PdfPTable(1);
pdfTable.TotalWidth = rectSize.Width;
pdfTable.SpacingAfter = 0;
pdfTable.SpacingBefore = 0;
PdfPCell cell = new PdfPCell(phrase);
cell.Padding = 0;
cell.PaddingBottom = rectPadding;
cell.PaddingLeft = rectPadding;
cell.PaddingRight = rectPadding;
cell.HorizontalAlignment = horizontalAlignment;
cell.Border = iTextSharp.text.Rectangle.NO_BORDER;
pdfTable.AddCell(cell);
pdfTable.WriteSelectedRows(0, 1, rectLocation.X, rectLocation.Y +
rectSize.Height, this.pdfWriter.DirectContent);
Bye Bye
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 19, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <EGEFJJEDAKIODDJHINPLIEEOCAAA.stsilver33@sksinfo.co.kr >
itextsharp can'r read text from PDFs. You'll have to use something else like
pdfbox or jpedal or xpdf or ghostscript.
Paulo
----- Original Message -----
From: "Lee Seong Eun" <stsilver33-uUZJSe6WbTs+MW+wcPHoAA@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Tuesday, December 19, 2006 5:50 AM
Subject: [itextsharp-questions] How to read Asian language PDF file?
Dear Itextsharp
I'd like to use ItextSharp in my project to read PDF format.
but I got some problem to read PDF by ItextSharp which is written by Korean
& Japanese.
My method is below...
PdfReader reader = new PdfReader(strPath);
for (int page = 1; page <= reader.NumberOfPages; page++)
{
string pageContent = "";
pageContent =
System.Text.Encoding.GetEncoding(932).GetString(reader.GetPageContent(page));
// Encode by Shift JIS(Japanese)
........
}
but I got strange string in pageContent.
How to resolve it ?
Please help me.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 18, 2006
-
Date: December 18, 2006 From: "Lee Seong Eun" <stsilver33-uUZJSe6WbTs+MW+wcPHoAA@public.gmane.org>
Dear Itextsharp
I'd like to use ItextSharp in my project to read PDF format.
but I got some problem to read PDF by ItextSharp which is written by Korean
& Japanese.
My method is below...
PdfReader reader = new PdfReader(strPath);
for (int page = 1; page <= reader.NumberOfPages; page++)
{
string pageContent = "";
pageContent =
System.Text.Encoding.GetEncoding(932).GetString(reader.GetPageContent(page))
; // Encode by Shift JIS(Japanese)
........
}
but I got strange string in pageContent.
How to resolve it ?
Please help me.
<<attachment: winmail.dat>>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 15, 2006
-
Date: December 15, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <b176f2670612150725v1c0a8b5bwfe62336a15abf6ff@mail.gmail.com >
There's already a fix for this in the CVS and a new release will be out next
week.
Paulo
________________________________
From: itextsharp-questions-bounces@lists.sourceforge.net on behalf of Laurent
Rodier
Sent: Fri 15-Dec-06 16:25
To: itextsharp-questions@lists.sourceforge.net
Subject: [itextsharp-questions] CJK and ArialUni.ttf
Hi,
In order to generate documents for various languages (occidental, CJK,
cyrillic, etc) I've used the ArialUni.ttf font using the IDENTITY_H codepage.
Unfortunately when closing the document I get an exception for the unsupported
UNICODEBIGUNMARKED text encoding.
Digging into the code I found that you get proper result using the following
hack:
//b =
System.Text.Encoding.GetEncoding(CJKFont.CJK_ENCODING).GetBytes(s);
b = System.Text.Encoding.BigEndianUnicode.GetBytes (s);
I didn't invent much here because I found that the SimpleXMLParser class has a
smart method GetEncodingEncoding that addresses the text encoding issue in a
clever way. Is it possible to enhance iTextSharp so encoding engines are always
picked up as per the SimpleXMLParser.GetEncodingEncoding method ?
Cheers
Laurent
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.
<<winmail.dat>>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 15, 2006 From: "Laurent Rodier" <lsrodier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Hi,
In order to generate documents for various languages (occidental, CJK, cyrillic, etc) I've used the ArialUni.ttf font using the IDENTITY_H codepage. Unfortunately when closing the document I get an exception for the unsupported UNICODEBIGUNMARKED text encoding.
Digging into the code I found that you get proper result using the following hack:
//b = System.Text.Encoding.GetEncoding(CJKFont.CJK_ENCODING).GetBytes(s);
b = System.Text.Encoding.BigEndianUnicode.GetBytes (s);
I didn't invent much here because I found that the SimpleXMLParser class has a smart method GetEncodingEncoding that addresses the text encoding issue in a clever way. Is it possible to enhance iTextSharp so encoding engines are always picked up as per the SimpleXMLParser.GetEncodingEncoding method ?
Cheers
Laurent
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 12, 2006
-
Date: December 12, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <s57d81f7.048@tungsten.whl.co.uk >
stamper.Outlines = SimpleBookmark.importFromXML(fin)
Paulo
----- Original Message -----
From: "MARTIN COVENEY" <COVENEYM-zrNO0gTcMa1aa/9Udqfwiw@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Monday, December 11, 2006 5:05 PM
Subject: [itextsharp-questions] Importing XMLbookmarks
*** Before acting on this email or opening any attachment you are advised
to read the disclaimer at the end of this email ***
I am trying to create a VB.net application that will import bookmarks that
have been exported from another pdf.
I have successfully used the SimpleBookmark.ExporttoXML to export the
bookmarks.
However "setOutlines" is not a memeber of iTextSharp.text.pdf.PdfStamper
according to my installation of VB. Is there another method available or
have I made a mistake some where. I was basing my code on a Java example
that I believe you wrote as an example Impbookmark.
*-------------
import java.io.*;
import com.lowagie.text.pdf.*;
public class ImpBookmark {
public static void main(String[] args) {
try {
if (args.length < 3) {
System.out.println("Pdf Bookmark Importer");
System.out.println("Args: pdf_in bookmarks_in pdf_out");
System.exit(2);
}
PdfReader reader = new PdfReader(args[0]);
FileInputStream fin = new FileInputStream(args[1]);
PdfStamper stamper = new PdfStamper(reader, new
FileOutputStream(args[2]));
stamper.setOutlines(SimpleBookmark.importFromXML(fin));
fin.close();
stamper.close();
System.exit(0);
}
catch (Exception e) {
e.printStackTrace(System.out);
System.exit(1);
}
}
}
*----------------
Regards
MC
*** Disclaimer ***
The information contained in this E-Mail and any subsequent correspondence
may be subject to the Export Control Act (ECA) 2002. The content is private
and is intended solely for the recipient(s).
For those other than the recipient any disclosure, copying, distribution, or
action taken, or omitted to be taken, in reliance on such information is
prohibited and may be unlawful.
If received in error please return to sender immediately.
Under the laws of England misuse of information that is subject to the ECA
2002, is a criminal offence.
--------------------------------------------------------------------------------
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--------------------------------------------------------------------------------
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 11, 2006
-
Date: December 11, 2006 From: Dan Essin <essin-EkmVulN54Sk@public.gmane.org>
In-reply-to: <002701c71cfd$2616cac0$16fea8c0@psoaresk > References: <7789549.post@talk.nabble.com > <002701c71cfd$2616cac0$16fea8c0@psoaresk >
ah...
Paulo Soares wrote:
>
> The plug-in weren't ported.
>
> Paulo
>
> ----- Original Message -----
> From: "Dan Essin" <essin-EkmVulN54Sk@public.gmane.org>
> To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
> Sent: Monday, December 11, 2006 5:19 AM
> Subject: [itextsharp-questions] iText Plugins
>
>
>>
>> The java version has a bunch of built-in utilities like
>> com.lowagie.tools.plugins.Burst and a gui applet to invkoe them.
>>
>> I cna't find any of these in iTextSharp. Could someone tell me where to
>> find
>> them?
>>
>> Thank you,
>> Dan
>> --
>> View this message in context:
>> http://www.nabble.com/iText-Plugins-tf2791965.html#a7789549
>> Sent from the itextsharp-questions mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> itextsharp-questions mailing list
>> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
>
--
View this message in context:
http://www.nabble.com/iText-Plugins-tf2791965.html#a7822902
Sent from the itextsharp-questions mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 11, 2006 From: "MARTIN COVENEY" <COVENEYM-zrNO0gTcMa1aa/9Udqfwiw@public.gmane.org>
*** Before acting on this email or opening any attachment you are advised to read the disclaimer at the end of this email ***
I am trying to create a VB.net application that will import bookmarks that have been exported from another pdf.
I have successfully used the SimpleBookmark.ExporttoXML to export the bookmarks.
However "setOutlines" is not a memeber of iTextSharp.text.pdf.PdfStamper according to my installation of VB. Is there another method available or have I made a mistake some where. I was basing my code on a Java example that I believe you wrote as an example Impbookmark.
?-------------
import java.io.*;
import com.lowagie.text.pdf.*;
public class ImpBookmark {
public static void main(String[] args) {
try {
if (args.length < 3) {
System.out.println("Pdf Bookmark Importer");
System.out.println("Args: pdf_in bookmarks_in pdf_out");
System.exit(2);
}
PdfReader reader = new PdfReader(args[0]);
FileInputStream fin = new FileInputStream(args[1]);
PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(args[2]));
stamper.setOutlines(SimpleBookmark.importFromXML(fin));
fin.close();
stamper.close();
System.exit(0);
}
catch (Exception e) {
e.printStackTrace(System.out);
System.exit(1);
}
}
}
?----------------
Regards
MC
*** Disclaimer *** The information contained in this E-Mail and any subsequent correspondence may be subject to the Export Control Act (ECA) 2002. The content is private and is intended solely for the recipient(s). For those other than the recipient any disclosure, copying, distribution, or action taken, or omitted to be taken, in reliance on such information is prohibited and may be unlawful. If received in error please return to sender immediately. Under the laws of England misuse of information that is subject to the ECA 2002, is a criminal offence. |
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 11, 2006 From: "Malin Ljungh" <malin.ljungh-axhnMtLnc0fLoDKTGw+V6w@public.gmane.org>
In-reply-to: <004501c71d24$dffb8760$16fea8c0@psoaresk > References: <78e970fa0612110459h753e56cdkb960f3d1fa03efb@mail.gmail.com > <004501c71d24$dffb8760$16fea8c0@psoaresk >
OK, it helped. Thanks for the quick reply!
I have another problem. If I add chunks to my PdfPCells I get alot of top padding which I can't seem to get rid of :[
Guess I'm doing something wrong here. Any suggestions?
/Malin
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 11, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <78e970fa0612110459h753e56cdkb960f3d1fa03efb@mail.gmail.com >
The text normally don't go over the next cell. If you want to truncate the
text to the first line set the cell height fixed.
Paulo
----- Original Message -----
From: "Malin Ljungh" <malin.ljungh-axhnMtLnc0fLoDKTGw+V6w@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Monday, December 11, 2006 1:59 PM
Subject: [itextsharp-questions] How to truncate overflow text in PdfPCell?
> Hi all,
>
> This may seem like a really stupid question, but I can't make it work :(
>
> How do I get overflowing text in a PdfPCell to be truncated and not
> written
> across the following cell?
>
> Please help :)
> Malin
>
--------------------------------------------------------------------------------
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--------------------------------------------------------------------------------
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 11, 2006 From: "Malin Ljungh" <malin.ljungh-axhnMtLnc0fLoDKTGw+V6w@public.gmane.org>
Hi all,
This may seem like a really stupid question, but I can't make it work :(
How do I get overflowing text in a PdfPCell to be truncated and not written across the following cell?
Please help :)
Malin
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 11, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <7789549.post@talk.nabble.com >
The plug-in weren't ported.
Paulo
----- Original Message -----
From: "Dan Essin" <essin-EkmVulN54Sk@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Monday, December 11, 2006 5:19 AM
Subject: [itextsharp-questions] iText Plugins
>
> The java version has a bunch of built-in utilities like
> com.lowagie.tools.plugins.Burst and a gui applet to invkoe them.
>
> I cna't find any of these in iTextSharp. Could someone tell me where to
> find
> them?
>
> Thank you,
> Dan
> --
> View this message in context:
> http://www.nabble.com/iText-Plugins-tf2791965.html#a7789549
> Sent from the itextsharp-questions mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 10, 2006
-
Date: December 10, 2006 From: Dan Essin <essin-EkmVulN54Sk@public.gmane.org>
The java version has a bunch of built-in utilities like
com.lowagie.tools.plugins.Burst and a gui applet to invkoe them.
I cna't find any of these in iTextSharp. Could someone tell me where to find
them?
Thank you,
Dan
--
View this message in context:
http://www.nabble.com/iText-Plugins-tf2791965.html#a7789549
Sent from the itextsharp-questions mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 06, 2006
-
Date: December 06, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
Chunk.SetTextRenderMode()
Paulo
> -----Original Message-----
> From:
> itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>
> [mailto:itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
>
> On Behalf Of tonyPenn
> Sent: Wednesday, December 06, 2006 2:29 PM
> To: itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Subject: [itextsharp-questions] Outline a font
>
>
> Is there any way to add an outline (say one pt.) to a font. I'm using
> embedded fonts.
>
> Thanks,
>
> --
> View this message in context:
> http://www.nabble.com/Outline-a-font-tf2768371.html#a7720254
> Sent from the itextsharp-questions mailing list archive at Nabble.com.
>
>
> --------------------------------------------------------------
> -----------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
> chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
> &CID=DEVDEV
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
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.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 06, 2006 From: tonyPenn <tony-KLfeNHZMrKjR7s880joybQ@public.gmane.org>
Is there any way to add an outline (say one pt.) to a font. I'm using
embedded fonts.
Thanks,
--
View this message in context:
http://www.nabble.com/Outline-a-font-tf2768371.html#a7720254
Sent from the itextsharp-questions mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 06, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <a984b2d90612051646n4fdd27b7kda8830452fad1c7a@mail.gmail.com >
Put the Paragraph inside a PdfPTable with SplitRows=false. Set the padding
to zero and no border.
Paulo
----- Original Message -----
From: "Robert Riley" <rsriley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Wednesday, December 06, 2006 12:46 AM
Subject: [itextsharp-questions] Simple method of avoiding paragraphs
gettingbroken between pages?
> Hey all - is there an easy way/class wrapper that allows me to simply
> indicate that a paragraph shouldn't be broken up between pages? (If it
> is going to get broken, start a new page instead). I tried having a
> go using a text column but either I misunderstood something, but it
> seemed somewhat complicated - my column was getting filled which led
> me to believe that i needed to manually track how much info was being
> put in there and force a dump. Anyway, if someone has already created
> a helper class or has a simple way of achieving what I am looking for
> I would love to hear about it. Thanks!
>
> Bob
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 05, 2006
-
Date: December 05, 2006 From: "Robert Riley" <rsriley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Hey all - is there an easy way/class wrapper that allows me to simply
indicate that a paragraph shouldn't be broken up between pages? (If it
is going to get broken, start a new page instead). I tried having a
go using a text column but either I misunderstood something, but it
seemed somewhat complicated - my column was getting filled which led
me to believe that i needed to manually track how much info was being
put in there and force a dump. Anyway, if someone has already created
a helper class or has a simple way of achieving what I am looking for
I would love to hear about it. Thanks!
Bob
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 03, 2006
-
Date: December 03, 2006 From: Adilson <adilsonb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Hi I´m using itextsharp in a asp.net project.
I have some troubles to put a image logo inside a cell, any help is welcome.
I want insert de jpg (or gif) image here:
PdfPCell cell1 = new PdfPCell(new Paragraph("", font2));
cell1.FixedHeight = 30;
cell1.HorizontalAlignment = Element.ALIGN_CENTER;
cell1.VerticalAlignment = Element.ALIGN_MIDDLE;
cell1.Colspan = 3;
table.AddCell(cell1);
Regards,
Adilson
--
View this message in context:
http://www.nabble.com/Add-Image-tf2747790.html#a7666044
Sent from the itextsharp-questions mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
December 01, 2006
-
Date: December 01, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <005101c71534$83b63e70$3c01140a@extensibleitsolutions.com >
Character spacing is not supported using Phrase. It can be done in
PdfContentByte but it's a low level approach that requires a very good
knowledge of the PDF format. I don't have any sample code.
Paulo
----- Original Message -----
From: "Abhilekha Thanvi"
<athanvi-xoTLjpWiq3M+MXp+tMkzFgCym/hCvTLSAL8bYrjMMd8@public.gmane.org>
To: "'Post all your questions about iTextSharp here'"
<itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Friday, December 01, 2006 10:36 AM
Subject: [itextsharp-questions] Character spacing
> Hi All,
>
> Please suggest me if is there a way to increase or decrease the
> spacing between characters in ITextSharp.
>
>
>
> Thanks
>
>
>
> Abhilekha Thanvi
> Software Engineer
>
>
>
>
>
>
--------------------------------------------------------------------------------
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--------------------------------------------------------------------------------
> _______________________________________________
> itextsharp-questions mailing list
> itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 01, 2006 From: "Abhilekha Thanvi" <athanvi-xoTLjpWiq3M+MXp+tMkzFgCym/hCvTLSAL8bYrjMMd8@public.gmane.org>
Hi All,
Please suggest me if is there a way to increase or decrease the spacing between characters in ITextSharp.
Thanks
Abhilekha Thanvi Software Engineer
|
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 01, 2006 From: "Abhilekha Thanvi" <athanvi-xoTLjpWiq3M+MXp+tMkzFgCym/hCvTLSAL8bYrjMMd8@public.gmane.org>
In-reply-to: <004501c7152e$542861c0$587ba8c0@psoaresk > References: <004501c7152e$542861c0$587ba8c0@psoaresk >
Can you please provide me short example for this
Thanks
Abhilekha Thanvi
Software Engineer
-----Original Message-----
From:
itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
On Behalf Of
Paulo Soares
Sent: Friday, December 01, 2006 3:22 PM
To: Post all your questions about iTextSharp here
Subject: Re: [itextsharp-questions] help
It will only work if you are using showText() and a single byte font.
Paulo
----- Original Message -----
From: "Abhilekha Thanvi"
<athanvi-xoTLjpWiq3M+MXp+tMkzFgCym/hCvTLSAL8bYrjMMd8@public.gmane.org>
To: "'Post all your questions about iTextSharp here'"
<itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Friday, December 01, 2006 9:38 AM
Subject: Re: [itextsharp-questions] help
> Thanks Paulo for the reply, I used this setWordSpacing() method but it's
> doing nothing.
>
> Abhilekha Thanvi
> Software Engineer
>
> -----Original Message-----
> From:
> itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
> On Behalf Of
> Paulo Soares
> Sent: Friday, December 01, 2006 2:35 PM
> To: Post all your questions about iTextSharp here
> Subject: Re: [itextsharp-questions] help
>
>
> ----- Original Message -----
> From: "Abhilekha Thanvi"
> <athanvi-xoTLjpWiq3M+MXp+tMkzFgCym/hCvTLSAL8bYrjMMd8@public.gmane.org>
> To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
> Sent: Friday, December 01, 2006 8:02 AM
> Subject: [itextsharp-questions] help
>
>
>> Hi All,
>>
>> Can any one please tell me if there is a way to reduce or
>> increase the size of the blank space in between words.
>>
>
> It depends. In PdfContentByte there's setWordSpacing(). You can also use a
> /u00a0 to increase the spacing.
>
> Paulo
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 01, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <004c01c7152c$67a29100$3c01140a@extensibleitsolutions.com >
It will only work if you are using showText() and a single byte font.
Paulo
----- Original Message -----
From: "Abhilekha Thanvi"
<athanvi-xoTLjpWiq3M+MXp+tMkzFgCym/hCvTLSAL8bYrjMMd8@public.gmane.org>
To: "'Post all your questions about iTextSharp here'"
<itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Friday, December 01, 2006 9:38 AM
Subject: Re: [itextsharp-questions] help
> Thanks Paulo for the reply, I used this setWordSpacing() method but it's
> doing nothing.
>
> Abhilekha Thanvi
> Software Engineer
>
> -----Original Message-----
> From:
> itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> [mailto:itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
> On Behalf Of
> Paulo Soares
> Sent: Friday, December 01, 2006 2:35 PM
> To: Post all your questions about iTextSharp here
> Subject: Re: [itextsharp-questions] help
>
>
> ----- Original Message -----
> From: "Abhilekha Thanvi"
> <athanvi-xoTLjpWiq3M+MXp+tMkzFgCym/hCvTLSAL8bYrjMMd8@public.gmane.org>
> To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
> Sent: Friday, December 01, 2006 8:02 AM
> Subject: [itextsharp-questions] help
>
>
>> Hi All,
>>
>> Can any one please tell me if there is a way to reduce or
>> increase the size of the blank space in between words.
>>
>
> It depends. In PdfContentByte there's setWordSpacing(). You can also use a
> /u00a0 to increase the spacing.
>
> Paulo
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 01, 2006 From: "Abhilekha Thanvi" <athanvi-xoTLjpWiq3M+MXp+tMkzFgCym/hCvTLSAL8bYrjMMd8@public.gmane.org>
In-reply-to: <002c01c71527$e190cea0$587ba8c0@psoaresk > References: <002c01c71527$e190cea0$587ba8c0@psoaresk >
Thanks Paulo for the reply, I used this setWordSpacing() method but it's
doing nothing.
Abhilekha Thanvi
Software Engineer
-----Original Message-----
From:
itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:itextsharp-questions-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org]
On Behalf Of
Paulo Soares
Sent: Friday, December 01, 2006 2:35 PM
To: Post all your questions about iTextSharp here
Subject: Re: [itextsharp-questions] help
----- Original Message -----
From: "Abhilekha Thanvi"
<athanvi-xoTLjpWiq3M+MXp+tMkzFgCym/hCvTLSAL8bYrjMMd8@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Friday, December 01, 2006 8:02 AM
Subject: [itextsharp-questions] help
> Hi All,
>
> Can any one please tell me if there is a way to reduce or
> increase the size of the blank space in between words.
>
It depends. In PdfContentByte there's setWordSpacing(). You can also use a
/u00a0 to increase the spacing.
Paulo
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 01, 2006 From: "Paulo Soares" <psoares-FFRsQ7IoPefQUPosyRRdSA@public.gmane.org>
References: <003b01c7151f$02728ea0$3c01140a@extensibleitsolutions.com >
----- Original Message -----
From: "Abhilekha Thanvi"
<athanvi-xoTLjpWiq3M+MXp+tMkzFgCym/hCvTLSAL8bYrjMMd8@public.gmane.org>
To: <itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Friday, December 01, 2006 8:02 AM
Subject: [itextsharp-questions] help
> Hi All,
>
> Can any one please tell me if there is a way to reduce or
> increase the size of the blank space in between words.
>
It depends. In PdfContentByte there's setWordSpacing(). You can also use a
/u00a0 to increase the spacing.
Paulo
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
Date: December 01, 2006 From: "Abhilekha Thanvi" <athanvi-xoTLjpWiq3M+MXp+tMkzFgCym/hCvTLSAL8bYrjMMd8@public.gmane.org>
Hi All,
Can any one please tell me if there is a way to reduce or increase the size of the blank space in between words.
Thanks in advance.
Abhilekha Thanvi Software Engineer
|
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions
<script type=text/javascript>
</script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type=text/javascript> </script>
|