Wt doesn't support converting a PDF->HTML, so how would you "display the PDF in the browser w/o a client-side plugin".
Since a PDF doesn't have a concept of a "page header" or "page footer", you will need to extract all the content on the page (or pages) and make some heuristic determination about what content meets your criteria. When you say TOC - do you mean a displayed TOC on a page _OR_ the PDF equivalent called "Bookmarks" or "Outlines"?? In the latter case, as Dom explianed, you can easily obtain these with PoDoFo - but in the former you will also have to analyze the content yourself. Leonard On 9/7/11 4:54 AM, "Alec Taylor" <[email protected]> wrote: >Thanks for the speedy response. > >No need to worry about the web-frontend, seems like Wt already has >libraries which implement that functionality. > >"The PDF file header can be analysed with PoDoFo. PoDoFo does not give >you direct access to headers and footers on pages in the PDF. This >will require analysis of the pages content streams, which is possible >using PoDoFo but no trivial task." > >Is there some example code? > >"Adding links to a PDF is no problem using PoDoFo." > >Excellent. Can you provide the reference? > >Thanks again for all your help, > >Alec Taylor > >On Wed, Sep 7, 2011 at 6:43 PM, Dominik Seichter ><[email protected]> wrote: >> Hi Alec, >> >>> The features (although not limited to this) is to: >>> € Allow users to upload PDFs >>> € PDFs are analysed by the system, gathering information on headers, >>> footers & Table of Contents using my custom algorithms >> Analysis of PDF files is be possible with PoDoFo. Access to the table >> of contents as in PDF outline structure is easy. >> I am not sure what you mean with "headers and footers". The PDF file >> header can be analysed with PoDoFo. PoDoFo does not give you direct >> access to headers and footers on pages in the PDF. This will require >> analysis of the pages content streams, which is possible using PoDoFo >> but no trivial task. >> >>> € PDFs ToC are annotated with hyperlinks >> Adding links to a PDF is no problem using PoDoFo. >> >>> € PDFs are then ready for display in browser (without need for a >>> client-side PDF plugin) >> This would require rendering of the PDF to HTML? PoDoFo does not >> provide rendering support. For rendering poppler is a better choice. >> >> Best regards, >> Dom >> >> >> >> On Wed, Sep 7, 2011 at 9:52 AM, Alec Taylor <[email protected]> >>wrote: >>> Good afternoon, >>> >>> I'm completing a project for analysing and displaying PDFs. >>> >>> The project will have a web-frontend implemented in Wt. >>> >>> The features (although not limited to this) is to: >>> € Allow users to upload PDFs >>> € PDFs are analysed by the system, gathering information on headers, >>> footers & Table of Contents using my custom algorithms >>> € PDFs ToC are annotated with hyperlinks >>> € PDFs are then ready for display in browser (without need for a >>> client-side PDF plugin) >>> >>> Are the PoDoFo PDF libraries the best open-source libraries for this >>> task? - If not, can you recommend another? >>> >>> Thanks for all suggestions, >>> >>> Alec Taylor >>> >>> >>>------------------------------------------------------------------------ >>>------ >>> Using storage to extend the benefits of virtualization and iSCSI >>> Virtualization increases hardware utilization and delivers a new level >>>of >>> agility. Learn what those decisions are and how to modernize your >>>storage >>> and backup environments for virtualization. >>> http://www.accelacomm.com/jaw/sfnl/114/51434361/ >>> _______________________________________________ >>> Podofo-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/podofo-users >>> >> > >-------------------------------------------------------------------------- >---- >Using storage to extend the benefits of virtualization and iSCSI >Virtualization increases hardware utilization and delivers a new level of >agility. Learn what those decisions are and how to modernize your storage >and backup environments for virtualization. >http://www.accelacomm.com/jaw/sfnl/114/51434361/ >_______________________________________________ >Podofo-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/podofo-users ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
