Print Page | Close Window

Table count

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=1996
Printed Date: 16 Dec 25 at 7:02AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Table count
Posted By: darkv
Subject: Table count
Date Posted: 12 Oct 11 at 3:31PM
Hello,

May be a dumb question : Is there anyway to know if table(s) are present in a file

thks in advance

Rgds




Replies:
Posted By: Ingo
Date Posted: 12 Oct 11 at 8:30PM
Hi Darkv!

A dumb answer: Yes... simply open the pdf with a reader... then you can see it ;-)
Questions like yours i have often, too.
How can i check if a pdf contains...?
QuickPDF doesn't offer functions for this issue.
What you can do is:
Take a few pdf-documents with tables in it and then open these documents directly with notepad or any other texteditor.
Search for tags which could be used for table definition.
If you are able to determine special tags for tables then you can write your own pdf-function:
Read the pdf-content into a stream -> search for your determined table-tags -> return with 1 if there are your tags or 0 if there's nothing.

Cheers, Ingo



Posted By: darkv
Date Posted: 12 Oct 11 at 10:53PM
Ingo,

Thanks for your reply which contains the right translation for my question ;-)

I'm surprized than qpdf can create / add table but does not have the way to retrieve them;
but that the way it is

I will try your recipe

Rgds
Eric


Posted By: AndrewC
Date Posted: 13 Oct 11 at 2:32PM
PDF is a graphical format and there are many ways to generate tables -You could lines, bitmaps, patterns, fonts  and probably other methods ...  It is possible to generate a table using any of these approaches.  Visually the results from each method will be the same.  

As Ingo hints, if your PDF's are all generated exactly the same way then you may be able search for tags to help identify if there are tables in your know PDF's.

Andrew.


Posted By: darkv
Date Posted: 13 Oct 11 at 2:43PM
Andrew,

Thks for your message.
I would be pleased if pdf were generated the same way, but there are not ...

Rgds
Eric



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