I've been searching about how to merge two cells and I've found two answers Rowspan and Nested. I can't make my table with those two functions because I don't know how to merge cells at the begining and at the end. I've been trying many ways but this is driving me crazy.
The table I want to make has 9 columns and 3 rows. So, I want the ...
I have a PDF document with a number of text fields, several of which have a maximum length - namely, a maximum number of allowable characters.
Is there a way using iTextSharp to determine this setting? Here's the code I have so far:
Dim reader As New iTextSharp.text.pdf.PdfReader("Foobar.pdf")
Dim inputFields As IDictionary(Of String, ...
Sample code:
using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using iTextSharp.text;
using iTextSharp.text.pdf;
namespace MergePDFs
{
class Program
{
static void Main(string[] args)
{
try
{
int f = 1;
// we create a reade...
I have an existing PDF document (generated by .NET LocalReport class).
Unfortunately there is a problem with copy/paste, since it seems that there
is no CMap/ToUnicode data there.
Does anyone know how to add CMap to all fonts in existing PDF using iTextSharp?
...
Hi,
I´m trying to get my pdf document to start at (0,0) however it seems that the document object has a default top margin which I cannot set to 0.
Is there a way to do this?
My code looks like the following
using (MemoryStream memoria = new MemoryStream())
{
Document pdf = new Document(new Rectangle(288, 14...
Hi,
If I try to merge pdf using iTextSharp with versions 4.0.4 + I get the error "PdfReader not opened with owner password". My first solution is downgrade to version 4.0.3 and I'll be able to merge files, but I would like to heard more solutions if possible.
My application needs to merge all the documents related to some issue and sho...
Hi,
I am creating an invoice using the iTextSharp. That displays nicely but sometime, when invoice items are larger in qty, the summary portion (which displays subtotal, tax, discounts, grand total etc) is splitted. Some displayes in current page and some moves to next page. I was thinking to move entire summary portion into next page, ...
Hi everyone, I'm having trouble with the following code. I'm trying to add a gridview to a PDF document, and I want the table to be only as wide as the gridview itself.
Right now, I've hard coded 700 into the rectangle, to try and set a max width for the table. The odd thing is, the bigger the number (let's say 800) the smaller the ta...
Good day,
I'm trying to create a simple table with iTextSharp, so with c#. The goal is a table like this one:
http://i.imgur.com/US8N3.png
The problem is that if I apply the rowspan as 2 on cell A, iTextSharp does not render the rowspanned cell, this means that the cell have the same height of cell B. Here's the code:
PdfPTable co...
Hi people, I've got a list of byte[] which i'd like to concatenate into one byte[] which will be the final PDf.
On the "page = copy.GetImportedPage(new PdfReader(p), i); " i'm getting an "object reference not set to an instance error.
I've got no clue of what's going on, i've already checked every object and there's no null.
Any id...
Hi,
I am trying to write a footer using ITextSharp library 5.0.4 and not able to print page number since OnEndPage and OnClosePage are not getting called.
This is a simple console app where I am printing tables to generate couple of pages and expecting OnEndPage or OnClosePage to get called where my code for footer will get executed ...
Hi, this is the problem:
i've got this piece of code...
It keeps throwing a NullReferenceException at the
stamp.AlterContents(); line.
i've got no clue on what's going on. Any help appreciated!
public static byte[] concatAndAddContent(List<byte[]> pdf)
{
byte [] todos;
using(MemoryStream ms = new Mem...
The title sums it all.
I want to add a text to an existing PDF file using iTextSharp, however i can't find how to do it anywhere in the web...
PS: I cannot use PDF forms.
Thanks in advance
...
Hi All,
Why wouldn't the following work?
phrase.AddAll(new ICollection<Chunk>[] { noteChunk, noteAttributeChunk });
Error 8 Cannot implicitly convert type 'iTextSharp.text.Chunk' to 'System.Collections.Generic.ICollection'.
Just curious,
rod.
...
I have been able to create portrait pages, and landscape pages in separate documents, but now require to do this in one document. I am using ITextSharp library and the document.setpagesize seems to apply to all pages. Is this correct?
I was using PDFLib and changing page orientation was not a problem in that library.
Any suggestions?...
Hi, I'm wondering if the dimensions of a page can be altered after content has been added to it?
I'm creating a PDF document in code using iTextSharp, and placing some content on a page. I'll only know the height of the content after drawing it, then I need to basically "crop" the page, so that it's only as tall as the content.
I know ...
I've needed to generate some very complex dynamic pdfs for a client. After messing around with several frameworks I ended up building an XML pseudo-language that translates to the itextsharp xml definition. I then use the xml parser to build the document. I have everything built, it works really well except for check-marks, which I can'...
Hello All,
I want to convert a ASP.NET web page to pdf using ITextSharp. I did write some code but I can not make it show the Turkish Characters. Can anyone help me?
Here is the code:
using System;
using System.IO;
using iTextSharp.text;
using iTextSharp.text.pdf;
using System.Web.UI;
using System.Web;
using iTextSharp.text.html.simpl...
I would like to add an array of PDFPCells to a PDFPRow, then add the PDFPRow to a PDFPTable, but I can't seem to find a method within PDFPTable for this.
There is however a PDFPTable.AddCell
Any ideas?
...