Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Watermark or other means of striking through a section of document

Explorer ,
Jun 10, 2025 Jun 10, 2025

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?

76
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 22, 2025 Jun 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 23, 2025 Jun 23, 2025
LATEST

OK. Thanks for the reply!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources