Answered by:
add text to pdf file in Share point 2010 library.

Question
-
Hi friends,
I wann to add some text to pdf file which is placed at share point document library. adding the new text i wann to save it back to same or another library. Please suggest how i can do this? Please share links / code if any.
Regard, Ravindra Patil
Wednesday, September 12, 2012 6:21 AM
Answers
-
Ravindra,
Please follow the steps to achieve this,
1,Read all the contents[bytes or stream based in pdf from library .
2,Append your string bytes to source bytes and write back to pdf.
3,You may use the iText opensource to generated the pdf in formatted contents.OR
Enable the Document Conversion Service [ You must have SP2010 enterprise version] to convert the pdf to Word.
Update the word file and convert back to PDF.
Murugesa Pandian.,MCTS|App.Devleopment|Configure
- Marked as answer by Qiao Wei Sunday, September 23, 2012 3:34 PM
Wednesday, September 12, 2012 6:58 AM -
Please refer the below articles to insert the text using itextSharp.dll library,
http://forums.asp.net/t/1444178.aspx/1
http://stackoverflow.com/questions/3992617/itextsharp-insert-text-to-an-existing-pdf
So you need to read the existing file form the SharePoint document library , and append the text
in this file then update the existing file or add the file in new library.
Hiren Patel | Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.
- Edited by Hiren.j.Patel Wednesday, September 12, 2012 7:17 AM
- Proposed as answer by Victor Khazanov Wednesday, September 12, 2012 7:27 AM
- Marked as answer by Qiao Wei Sunday, September 23, 2012 3:35 PM
Wednesday, September 12, 2012 7:11 AM
All replies
-
Ravindra,
Please follow the steps to achieve this,
1,Read all the contents[bytes or stream based in pdf from library .
2,Append your string bytes to source bytes and write back to pdf.
3,You may use the iText opensource to generated the pdf in formatted contents.OR
Enable the Document Conversion Service [ You must have SP2010 enterprise version] to convert the pdf to Word.
Update the word file and convert back to PDF.
Murugesa Pandian.,MCTS|App.Devleopment|Configure
- Marked as answer by Qiao Wei Sunday, September 23, 2012 3:34 PM
Wednesday, September 12, 2012 6:58 AM -
Please refer the below articles to insert the text using itextSharp.dll library,
http://forums.asp.net/t/1444178.aspx/1
http://stackoverflow.com/questions/3992617/itextsharp-insert-text-to-an-existing-pdf
So you need to read the existing file form the SharePoint document library , and append the text
in this file then update the existing file or add the file in new library.
Hiren Patel | Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.
- Edited by Hiren.j.Patel Wednesday, September 12, 2012 7:17 AM
- Proposed as answer by Victor Khazanov Wednesday, September 12, 2012 7:27 AM
- Marked as answer by Qiao Wei Sunday, September 23, 2012 3:35 PM
Wednesday, September 12, 2012 7:11 AM