Print Page | Close Window

Modify text in a PDF doc

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1915
Printed Date: 13 May 24 at 7:25PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Modify text in a PDF doc
Posted By: abacuc
Subject: Modify text in a PDF doc
Date Posted: 08 Aug 11 at 1:31PM
Hi everyone,
i need your help...i made a PDF document by scanner a paper document and merged it with the result of an OCR operation. Now i see the correct layout of the document but when i copy and paste from it i see many errors (OCR errors). I want to know if i can modify the text under the image with quickpdf library (for now i retrieve the text content only). 

thanks



Replies:
Posted By: Rowan
Date Posted: 08 Aug 11 at 2:32PM
Hi there,

Currently it's not possible to edit text in a PDF using Quick PDF. You can extract text and you can add text, but you can't edit text directly in the PDF.

For this you can try something like Nitro PDF (www.nitropdf.com) or Acrobat. But editing normal text in a PDF is usually difficult, so editing text which has been OCR'd could be problematic indeed.

Goodluck!

Cheers,
- Rowan.


Posted By: abacuc
Date Posted: 08 Aug 11 at 2:35PM
yes but perhaps i can read text and image from the source, filter the text in some manner, and write the result on a new file? Isn'it?


Posted By: Rowan
Date Posted: 08 Aug 11 at 2:40PM
Yes, if you want to extract all text and images and then write that to a new PDF, then this is possible.

Sorry, I didn't think that would be an acceptable solution to you. But it would definitely work.

Here's some sample Delphi code that has been used to do a similar job before:

http://quickpdf.org/forum/extract-text-and-images-and-insert-into-new-pdf_topic1308.html - http://quickpdf.org/forum/extract-text-and-images-and-insert-into-new-pdf_topic1308.html


Posted By: abacuc
Date Posted: 08 Aug 11 at 2:42PM

good ... i will read your suggested post but why you think that is not an acceptable solution for me?


thanks



Posted By: Rowan
Date Posted: 08 Aug 11 at 2:48PM
Only because usually when someone wants to edit text in a PDF re-writing out the entire PDF by extracting the text and images isn't an optimal solution. It's much quicker and more efficient to directly edit the text in the PDF -- but Quick PDF Library doesn't support that direct editing of text.

However, in hindsight, re-writing the PDF -- given that it's an OCR'd PDF -- is actually probably the best thing to do.


Posted By: abacuc
Date Posted: 08 Aug 11 at 2:54PM
i try Smile


Posted By: abacuc
Date Posted: 08 Aug 11 at 2:55PM
...i forgot....1000 thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk