Print Page | Close Window

Multiple Values

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=1974
Printed Date: 05 Apr 26 at 3:51AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Multiple Values
Posted By: pmariottini
Subject: Multiple Values
Date Posted: 27 Sep 11 at 6:05PM

When I extract the text from a pdf, I get 4 multiple values.  I think the report has been created from an access database.  Here is the Sample of the output.  Thanks

174.96,701.88,#000000,10.98,"XTSEBN+TimesNewRoman,Bold","ABC San Jose, CA" 174.96,688.8,#000000,8.99,"XTSEBN+TimesNewRoman,Bold","1514 Moffett St. Suite" 174.96,678.12,#000000,8.99,"XTSEBN+TimesNewRoman,Bold","San Jose, CA 93905" 68.52,587.76,#000000,11.98,"XTSEBN+TimesNewRoman,Bold","ABCD Company" 111.48,524.28,#000000,11.98,"UGLJTT+TimesNewRoman","(408) 123-4567" 111.24,524.04,#000000,11.98,"UGLJTT+TimesNewRoman","(408) 123-4567" 111.48,524.04,#000000,11.98,"UGLJTT+TimesNewRoman","(408) 123-4567" 111.24,524.28,#000000,11.98,"UGLJTT+TimesNewRoman","(408) 123-4567" 68.52,555.72,#000000,11.98,"UGLJTT+TimesNewRoman","123 S. 1st Street" 68.52,540,#000000,11.98,"UGLJTT+TimesNewRoman","Gilroy, CA 93930" 69.48,571.92,#000000,11.98,"UGLJTT+TimesNewRoman","Jose Rodriguez" 69.24,571.68,#000000,11.98,"UGLJTT+TimesNewRoman","Jose Rodriguez" 69.48,571.68,#000000,11.98,"UGLJTT+TimesNewRoman","Jose Rodriguez" 69.24,571.92,#000000,11.98,"UGLJTT+TimesNewRoman","Jose Rodriguez"



Replies:
Posted By: Wheeley
Date Posted: 27 Sep 11 at 10:26PM
Don't take this the wrong way, but:

What are you trying to ask? You have no question in your post.

Wheeley


Posted By: AndrewC
Date Posted: 28 Sep 11 at 3:15AM
Some PDF libraries draw overlapping text objects a few pixels apart to simulate BOLD font drawing using the a normal font.  Looking at the coordinates in your file this is exactly what is happening.
So technically there are four different text strings in the PDF which QPL is extracting correctly.

Notice the very minor offsets in the x,y positions for the repeated text.

111.48,524.28,#000000,11.98,"UGLJTT+TimesNewRoman","(408) 123-4567"
111.24,524.04,#000000,11.98,"UGLJTT+TimesNewRoman","(408) 123-4567"
111.48,524.04,#000000,11.98,"UGLJTT+TimesNewRoman","(408) 123-4567"
111.24,524.28,#000000,11.98,"UGLJTT+TimesNewRoman","(408) 123-4567"
68.52,555.72,#000000,11.98,"UGLJTT+TimesNewRoman","123 S. 1st Street"
68.52,540,#000000,11.98,"UGLJTT+TimesNewRoman","Gilroy, CA 93930"
69.48,571.92,#000000,11.98,"UGLJTT+TimesNewRoman","Jose Rodriguez"
69.24,571.68,#000000,11.98,"UGLJTT+TimesNewRoman","Jose Rodriguez"
69.48,571.68,#000000,11.98,"UGLJTT+TimesNewRoman","Jose Rodriguez"
69.24,571.92,#000000,11.98,"UGLJTT+TimesNewRoman","Jose Rodriguez"


Posted By: pmariottini
Date Posted: 28 Sep 11 at 11:58PM

I apologize, I copied the question from a word document and I guess I left out the question part. My question was, Are there any useful functions for dealing with repetitive values? 

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