Hi,
Hi Hiba,
Bitmap source_image = new
Bitmap(“c:/pdftest/StampedPDF.png”);<o:p></o:p>
source_image.RotateFlip(RotateFlipType.Rotate90FlipX);
// save the rotated image in Stream object
MemoryStream stream = new MemoryStream();
source_image.Save(stream, System.Drawing.Imaging.ImageFormat.Jpeg);
//create PdfFileMend object to add text
PdfFileMend mender = new PdfFileMend();
// bind the source PDF file
mender.BindPdf("c:/pdftest/LineSpacing_HelloWorld.pdf");
//add image in the PDF file
mender.AddImage(stream, 1, 100, 600, 200, 700);
//save the PdfFileMend object
mender.Save("c:/pdftest/LineSpacing_HelloWorld_WithImage.pdf");
stream.Close();
hi,
Hi Hiba,
Document doc = new
Document(“input.pdf”);<o:p></o:p>
// rotate first page to 90 degree
doc.Pages[1].Rotate = Rotation.on90;
// save updated document
doc.Save(“PageRotated.pdf”);