Solved

asp.net, itextsharp

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

8 Experts available now in Live!

Get 1:1 Help Now