Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
R yender Text Only |
Post Reply ![]() |
Author | |
emgi ![]() Beginner ![]() Joined: 21 Aug 12 Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() Posted: 16 May 14 at 7:44AM |
Hi,
I would like to render text only from pdf to image file. I'm using DAExtractPageText function with option 4 and creating a new file base on returned data. But the size of the rendered text is really different compared to the original. Do you know why ? Is there another way to do that ? Thank you Emgi |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
emgi,
You may want to make use of the following function http://www.debenu.com/docs/pdf_library_reference/SplitPageText.php This will not work on very complex typeset PDF files but it works well on most files. QP.LoadFromFile("1page.pdf", ""); QP.CombineContentStreams(); QP.SplitPageText(0); QP.RemoveContentStream(0); // Remove the graphics layer leaving the text. QP.SaveToFile("textonly.pdf"); Andrew
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store