Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
Sample Code require for develop VB.Net project to Create PDF File useing itextsharp.dll how it work.
Posted 22-Aug-11 3:20am
S.Sls76610
Comments
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

read the article, at codeproject
ITextSharp Helper Class[^]
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hai here is an example to create a pdf file using itextsharp.dll in vb.net
Dim doc As New Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35)
Dim writer As PdfWriter = PdfWriter.GetInstance(doc, New FileStream("D:\Temporary\sample.pdf", FileMode.Create))
doc.Open()
 

Dim para As New Paragraph("This is my first paragraph")
Dim pharse As New Phrase("This is my first phrase")
Dim chunk_ As New Chunk("This is my first chunk")
 
doc.Add(para)
doc.Add(pharse)
doc.Add(chunk_)
 
doc.Close()
  Permalink  
Comments
Member 10486834 at 25-Dec-13 7:10am
   
if there are different colored text then how to export these colored text to pdf.
it always display in the black color but what i want is how to create a pdf document which consists of different colors ?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

if there are different colored text then how to export these colored text to pdf.
it always display in the black color but what i want is how to create a pdf document which consists of different colors ?
  Permalink  
Comments
CHill60 at 25-Dec-13 8:31am
   
If you have a question of your own use the "Ask a question" link. Posting a question as a solution to an old post not only attracts downvotes and reports, but fewer people will see it, therefore you are less likely to get help.
Member 10486834 at 25-Dec-13 14:22pm
   
i am new to this portal , anyways i've asked a new question with "Ask a question" link
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Learn simply to click http://mikesdotnetting.com/[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.150326.1 | Last Updated 25 Dec 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100