Hello,
I've recently started using iTextSharp to generate PDF reports from data. It works quite nicely.
In one particular report, I need a section to always appear at the bottom of the page. I'm using the PdfContentByte to create a dashed line 200f from the bottom:
cb.MoveTo(0f, 200f);
cb.SetLineDash(8, 4, 0);
cb.LineTo(doc.PageSize.W...
I need to take an HTML page in Arabic and convert it to a PDF. itextsharp doesn't work. Here is some example HTML with Arabic in it.
<div>
<table border="1" width="500px">
<tr>
<td colspan="2">
aspdotnetcodebook
اللغة العربية</td>
</tr>
<tr>
<td>
...
Is there any open source .NET project (or port) similar to the Flying Saucer project which renders HTML to PDF using iText?
...
Hello,
Is there a way we can delete the first page of the PDF using iTextSharp?
...
I have some chart-creating code written for a coordinate system in which a y-coordinate of 0 is the top of the page. We are now converting to iTextSharp, which uses the conventional system from mathematics where a y-coordinate of 0 is the bottom of the page. There are many calculations involved in producing the chart and I'd like to not ...
I'm sure I'm making some kind of silly mistake here, but when converting a tiff file to PDF, the colours become reversed. I can't figure out why. Here's my code:
Document document = new Document(PageSize.A4, 50, 50, 50, 50);
PdfWriter writer = PdfWriter.GetInstance(document, new FileStream("Image.pdf", FileMode.Create));
System.Drawin...
Hi,
iam using iTextsharp to create pdf.
but the problem is that when i am using anchor element to open link but the link opening in same pdf window rather that i want to open in new window.........
...
I would need to insert images in a pdf and then put text on top of the image at certain coordinates. Is this possible?
...
I've got a two part question about using iTextSharp. I've built a simple MVC application to store information about "lessons learned" in a SQL Server database. When a user is looking at the details for a lesson I want them to be able to save the lesson as a PDF. I've got some working code but 1) I'm not sure how sound my approach is and ...
I am having trouble keeping my first and second rows of my main PDFPTable together using IText. My first row consists of a PDFPTable with some basic information. My second row consists of a PdfPTable that contains all of the tabulated info. Everytime the tabulated info becomes too big and spans multiple pages, it is kicked to the seco...
Console.WriteLine("Chapter 1 example 6: Meta Information");
// step 1: creation of a document-object
Document document = new Document();
try
{
// step 2:
// we create a writer that listens to the document
// and directs a PDF-stream to a file
PdfWriter.Get...
Hi all. I am using iTextSharp to create a PDF document in C#. I would like to attach another file to the PDF. I'm having just loads of trouble trying to do so. The examples here show some annotations, which apparently attachments are.
This is what I've tried:
writer.AddAnnotation(its.pdf.PdfAnnotation.CreateFileAttachment(writer, n...
I have some PDF's all with two attached files with static names. I would like to use iTextSharp to extract these files to a temp directory so that I can work with them further. I tried following the tutorial here but I ran into problems when the iTextSharp.text.pdf.PdfReader didn't have a getCatalog() method as shown in the bottom exam...
is there a nice tutorial/help/ebook/documentation online for itextsharp?
...
Hi,
i'm having a weird problem with images in iTextSharp library.
I'm adding the image to the PdfPCell and for some reason it gets scaled up.
How do i keep it to original size?
Here's the image of the PDF at 100% and the image in its original size opened in paint.net.
I though that the images would be same when printed but the differen...
class mineTest
{
string pdfTemplate = @"c:\us.pdf";
public mineTest(Customer c, string output)
{
StreamReader sr = new StreamReader(pdfTemplate);
StreamWriter sw = new StreamWriter(output);
string content = sr.ReadToEnd();
content.Replace("(Customer name)/DA(/Ve...
Let's say I've loaded a PDF file using iTextSharp:
PdfStamper p = GetDocument();
AcroFields af = ps.AcroFields;
How do I get a list of all field names on the document from af?
...
Hi,
I am using the code below to convert Html string to PDF.I notice that at times, it does print the tables in PDF but no styles(no border, color etc..).Below is the html string:
Can anyone suggest me where am I missing something?
Hi userThe Message ID 56456 has been assigned to you for Edition.
AUTO VERIFY FOR CONGROUP cccccc...
I can use PdfStamper to populate a blank PDF form with data values, and the result document can be changed and saved by the user. When I needed to stream 2 copies of the same document with different data as a single download, I modified my code to use PdfCopyFields to merge the two documents, which works, but the result document can't b...
Hi, with version 5, iText has been split into two branches - iText PDF & iText RTF.
iTextSharp, which I use, seem to be iText PDF now. Is there a iText RTF port for .NET yet? I would think that iTextSharp homepage would mention this, but there is nearly no useful information, only file download, I don't even find a way to contact iTextS...