Solved

asp.net, itextsharp

Posted on 2013-01-11
3
327 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

617 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