i had created a pdf file using the aspose.And i want to append some text into the same file.
Can you help me out in adding the text to the existing file.
i am sending you the code.
Code For Creating a pdf file and writing image into the file:
Pdf pdf1 = new Pdf();
Section sec1 = pdf1.Sections.Add();
Aspose.Pdf.Image image1 = new Aspose.Pdf.Image(sec1);
image1.ImageInfo.File = "c:/dwclogo1.jpg";
image1.ImageInfo.ImageFileType = ImageFileType.Jpeg;
image1.ImageInfo.Title = "JPEG image";
System.IO.FileStream fs1 = new System.IO.FileStream("C:/test1.pdf",System.IO.FileMode.Append,System.IO.FileAccess.Write);
Pdf pdf = new Pdf();
string s = "
is a test for HTML </ support
in Text paragraph. ";
string s1 = "This is a test for HTML with colored text.";
string s2 = "
This is a test forHTML in text paragraph.
Text t1 = new Text(s);
t1.IsHtmlTagSupported = true;
Text t2 = new Text(s1);
t2.IsHtmlTagSupported = true;
Text t3 = new Text(s2);
t3.IsHtmlTagSupported = true;
//Add the text paragraphs containing HTML text to the section
//Save the pdf document
If i am running the above part1 code individually i am getting the pdf file saved
in the 'C'drive.But i am not able to append the below text to the pdf file
"test.pdf".If i am trying to run the total code then i am getting the test.pdf as
Please help me out in appending the content to the existing file.Please solve this
problem for me