![add watermark pdf online free add watermark pdf online free](https://knnit.com/wp-content/uploads/2020/04/add-a-watermark-scaled.jpg)
The crop box defines the region to which the contents of the page are to be clipped (cropped) when displayed or printed.Content falling outside this boundary can safely be discarded without affecting the meaning of the PDF file. It may also include areas close to the edges of the medium that cannot be marked because of physical limitations of the output device. It may include any extended area surrounding the finished page for bleed, printing marks, or other such purposes. The media box defines the boundaries of the physical medium on which the page is to be printed.To handle such cases, a PDF page can define as many as five separate boundaries to control various aspects of the imaging process: The intermediate page may often include additional production-related content, such as bleeds or printer marks, that falls outside the boundaries of the finished page. In the latter case, it is important to distinguish between the intermediate page and the finished page.
#Add watermark pdf online free how to#
Below example shows how to get width and height of a particular page.ĪĪ PDF page may be prepared either for a finished medium, such as a sheet of paper, or as part of a prepress process in which the content of the page is placed on an intermediate medium, such as film or an imposed reproduction plate. GroupDocs.Watermark also provides the feature to get the dimensions of the page in a PDF document. If for some reasons you want to use absolute sizing and positioning, you may also need to determine page size. WatermarkableImageCollection images = () įoreach (WatermarkableImage image in images)
![add watermark pdf online free add watermark pdf online free](https://image.slidesharecdn.com/howtoaddwatermarktopdffree-130804205240-phpapp01/95/how-to-add-watermark-to-pdf-free-3-638.jpg)
PdfContent pdfContent = watermarker.GetContent() Watermark.SizingType = SizingType.ScaleToParentDimensions Watermark.VerticalAlignment = VerticalAlignment.Center Watermark.HorizontalAlignment = HorizontalAlignment.Center
![add watermark pdf online free add watermark pdf online free](https://www.easepdf.com/images/pdf-tips/adobe-acrobat-pro-add-watermark.png)
TextWatermark watermark = new TextWatermark( "Protected image", new Font( "Arial", 8))
![add watermark pdf online free add watermark pdf online free](https://image.slidesharecdn.com/howtoaddwatermarktopdffree-130804205240-phpapp01/95/how-to-add-watermark-to-pdf-free-6-638.jpg)
#Add watermark pdf online free code#
Following code snippet shows how to add watermark to all images in a particular page of a PDF document.Ī The API also allows you to add watermark to the images inside a particular page of the PDF document. Watermarker.Save(Constants.OutDocumentPdf) Īdding watermark to all images of a particular page Watermarker.Add(imageWatermark, imageWatermarkOptions) PdfArtifactWatermarkOptions imageWatermarkOptions = new PdfArtifactWatermarkOptions() Using (ImageWatermark imageWatermark = new ImageWatermark(Constants.ProtectJpg)) Add image watermark to the second page Watermarker.Add(textWatermark, textWatermarkOptions) PdfArtifactWatermarkOptions textWatermarkOptions = new PdfArtifactWatermarkOptions() TextWatermark textWatermark = new TextWatermark( "This is a test watermark", new Font( "Arial", 8)) Ex: (Watermarker watermarker = new Watermarker(Constants.InDocumentPdf, loadOptions)) Constants.InDocumentPdf is an absolute or relative path to your document. PdfLoadOptions loadOptions = new PdfLoadOptions() GroupDocs.Total Product Family GroupDocs.Viewer Product Solution GroupDocs.Annotation Product Solution GroupDocs.Conversion Product Solution GroupDocs.Comparison Product Solution GroupDocs.Signature Product Solution GroupDocs.Assembly Product Solution GroupDocs.Metadata Product Solution GroupDocs.Search Product Solution GroupDocs.Parser Product Solution GroupDocs.Watermark Product Solution GroupDocs.Editor Product Solution GroupDocs.Merger Product Solution GroupDocs.Redaction Product Solution GroupDocs.Classification Product Solution