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

How might i take a pdf of images, and convert the all text to sentence case and re-save the pdf?

Community Beginner ,
Jul 31, 2023 Jul 31, 2023

Copy link to clipboard

Copied

Hi, 

I want to create a process where I can take a pdf that contains images that have text. To make it specific, let's say a pdf of a comic book, where the text is scattered on the pages in various places.

Now I want to convert all the text from all caps to sentence case, but I want to keep the text where it is.

Then I want to save the new pdf with the updated text format.

 

1. Is this possible?

2. How might that be done? I'm assuming that using the API I can feed it a pdf file and then use OCR but it is not completely clear to me what happens then, and if/how I can update all the text to sentence cap and make sure it stays in place. 

 

I also assume that it might have to be converted to another font sometimes, so would I be able to adjust the font size also to make sure all the text stays in the speech bubbles of the comic?

 

Thanks in advance.

TOPICS
How to , PDF Services API

Views

135

Translate

Translate

Report

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 ,
Jul 31, 2023 Jul 31, 2023

Copy link to clipboard

Copied

This is certainly possible using a combination of our tools and some additional PDF libraries but there is no automated Adobe-only solution to achieve your goal. This will require some custom coding. One hint is that after performing the OCR, don't bother trying to replace the existing text. Instead, get its bounding box and cover it up with the new text on an opaque background the same color as the background of the original text. 

Votes

Translate

Translate

Report

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 Beginner ,
Jul 31, 2023 Jul 31, 2023

Copy link to clipboard

Copied

LATEST
Thanks

Votes

Translate

Translate

Report

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