Solved

asp.net, itextsharp

Posted on 2013-01-11
3
324 Views
Last Modified: 2013-02-06
I use itextsharp in one aspx / c# application.
Everything is working fine as the way it is, and now I want to add one static pdf
check my comment at the bottom. how can do that?

Thanks

  public string CreatePdfFile(DataLibs DataLibs)
        {
            var doc = new Document();
            PdfWriter.GetInstance(doc, new FileStream(DataLibs.FileLocation1, FileMode.Create));
            string doc1filelocation = DataLibs.FileLocation1;
            iTextSharp.text.Image CompanyLogoImg = iTextSharp.text.Image.GetInstance(DataLibs.CompanyLogoLocation);
            string productname = CommonData.GetProductName(DataLibs.ProductId);
            //CompanyLogoImg.SetAbsolutePosition(240, 500);
            doc.Open();

          tableCompany.AddCell(DataCompanyHeader);
            tableCompany.AddCell(new Phrase("Company Name:", boldTableFont));
         
          doc.Add(tableDocumentHeader);
          doc.NewPage();
          //add new pdf page that came from other directory like (c:\\doc\xxx.pdf)
         }
0
Comment
Question by:solution1368
  • 2
3 Comments
 
LVL 19

Expert Comment

by:Manoj Patil
ID: 38769844
You mean to say, you want to append new static PDF page to the created page ?
0
 
LVL 23

Expert Comment

by:Roopesh Reddy
ID: 38771795
0
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 500 total points
ID: 38786173
Hi,

Does the link helped you?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question