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!
![]() |
PDF to text |
Post Reply ![]() |
Author | |
battit64 ![]() Beginner ![]() Joined: 06 Aug 10 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() Posted: 06 Aug 10 at 1:10PM |
Hello
anyone has an exemple to convert pdf to text with coordoninate in VB .NET thanks |
|
![]() |
|
Rowan ![]() Moderator Group ![]() ![]() Joined: 10 Jan 09 Status: Offline Points: 398 |
![]() ![]() ![]() ![]() ![]() |
Here's some VB sample code that demonstrates how to use the ExtractFilePageText function to extract text from all pages in a PDF with co-ordinates and other information.
' Load the test file and Iterate through each page in the ' PDF and append it to a text file. Dim strInputFilePath As String = GetInputFolder() + "apply_ fingerprint.pdf" QP.LoadFromFile(strInputFilePath) ' Calculate the number of pages Dim iNumPages As Integer = QP.PageCount() Dim strText As String = "" Dim nPage As Integer = 0 For nPage = 1 To iNumPages strText = strText + QP.ExtractFilePageText(strInputFilePath, "", nPage, 4) Next ' Write all the data to a file s = oFSO.CreateTextFile(GetOutputFolder() + "extracted_text.txt", 1) s.Writeline(strText) s.Close() ' Display the text MsgBox(strText) |
|
![]() |
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