Hi,
I am using the ASPOSE PDF component to convert some word documents to their PDF equivalents. In the MS Word document there already exists a watermark image and I need to put it the same way in the exported PDF. I have few queries on this:
- If the Word document has a watermark image already existing, while exporting the document to PDF will this image also get imported automatically to PDF?
- If I try to add a new watermark from PDF will this overwrite the existing Word watermark image?
- Can I align the watermark image diagonally across the page?
I used the following code as posted in your documentation:
//-----------------------------------------------------------------------
//image watermark
//-----------------------------------------------------------------------
Aspose.Pdf.Image image1 = new Aspose.Pdf.Image();
image1.ImageInfo.File = @“D:\Templates\Images\Watermark.JPG”;
image1.ImageInfo.ImageFileType = ImageFileType.Jpeg;
image1.ImageScale = 1.0f;
FloatingBox watermark1 = new FloatingBox(180, 400);
watermark1.BoxHorizontalPositioning = BoxHorizontalPositioningType.Page;
watermark1.BoxHorizontalAlignment = BoxHorizontalAlignmentType.Center;
watermark1.BoxVerticalPositioning = BoxVerticalPositioningType.Page;
watermark1.BoxVerticalAlignment = BoxVerticalAlignmentType.Center;
watermark1.Paragraphs.Add(image1);
//------------------------------------------------------------------------
Regards,
Vaibhav Modak