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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - R yender Text Only
  FAQ FAQ  Forum Search   Register Register  Login Login

R yender Text Only

 Post Reply Post Reply
Author
Message
emgi View Drop Down
Beginner
Beginner


Joined: 21 Aug 12
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote emgi Quote  Post ReplyReply Direct Link To This Post Topic: R yender Text Only
    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

Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 14 at 9:36AM
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store