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.
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.
Copy link to clipboard
Copied