Solved

asp.net, itextsharp

Posted on 2013-01-11
3
321 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now