Skip to main content
Inspiring
June 10, 2025
Question

Watermark or other means of striking through a section of document

  • June 10, 2025
  • 1 reply
  • 180 views

Is it possible to use the Watermark API to strike through a section of PDF?   I want to put a diagonal line through a portion of the page (not the whole page).    If not, is there another means of accomplishing this?

    1 reply

    creative explorer
    Community Expert
    Community Expert
    June 22, 2025

    @Aftia_Jeff  the Watermark API is excellent for adding text or images across an entire page, it's generally not designed to apply a line to just a specific, partial section of a page or to draw arbitrary shapes like diagonal strike-throughs directly. Watermarks are typically fixed elements placed over or under the entire page content. You could try adding a custom annotation. You would need to digitally create a line annotation that can be precisely positioned and styled (including color and thickness) on a specific area of the page. This is how many PDF editors achieve strike-throughs. Or overlay a small image. Here you could create a very small image file that is just a diagonal line, and then use the API to precisely place that overlay onto your target section. This is a bit of a workaround but gives you precise control.

    m
    Inspiring
    June 23, 2025

    OK. Thanks for the reply!