1

I want to extract the lines and other shapes in a PDF file and also need to get the position of lines and other shapes using itextsharp. So can anyone help for this??

Thanks in advance..

Samo
  • 11
  • 2
  • 1
    That's not supported yet, so you'll have to write your own "GraphicsRenderInfo" class. Use "TextRenderInfo" and "ImageRenderInfo" for inspiration. – Bruno Lowagie Jun 26 '14 at 07:13
  • Then is there any way to extract the tables from the PDF file? – Samo Jun 26 '14 at 08:59
  • There is no such thing as "a table" in PDF, unless your PDF is Tagged. Is your PDF tagged? – Bruno Lowagie Jun 26 '14 at 09:40
  • My problem is there is a table in document and i export it to PDF. Now i want extract it back. How can i do this using iTextsharp? – Samo Jun 26 '14 at 10:24
  • possible duplicate of [Using LocationTextExtractionStrategy in itextSharp for text coordinate](http://stackoverflow.com/questions/7513209/using-locationtextextractionstrategy-in-itextsharp-for-text-coordinate) – Chris Haas Jun 26 '14 at 13:28
  • We have a communication problem, @Samo. You say that there is a table in your document. I say there isn't. I'm the PDF expert, so... maybe I'm right. When you say there's a table in your document, you say so because you see that table with your eyes. When I say there is no table in your document, I am right because a machine can *render* a table, but it doesn't know that the table is actually a table (unless the PDF is tagged). All it sees are glyphs and lines added at absolute positions. I'll also vote to close the question as it's indeed a duplicate of the question already answered by Chris. – Bruno Lowagie Jun 26 '14 at 13:50
  • Hi Bruno Lowagie, You said that, All it sees are glyphs and lines added at absolute positions.. So my question is How can i extract that lines or else at least i need to get start and end coordinate points of those lines.. Please let me know is it possible using iTextsharp or is it possible using any other library?? – Samo Jun 27 '14 at 12:09

0 Answers0