Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there any PDF parser written in objective-c or c?
    primarykey
    data
    text
    <p>I'm writing a pdf reader iPhone application.</p> <p>I know how to show pdf file in view using CGPDF** classes in iOS.</p> <p>What I want to do now is to search text in pdf file, and highlight the searched text. So, I need a library which can detect what text is in what position. Besides, I want the library able to handle unicode and Chinese characters.</p> <p>I've searched for a few days but still cannot find anything suitable.</p> <p>I've tried xpdf, but it is written in c++. I don't know how to use c++ code in iPhone app.</p> <p>I've also tried <a href="http://www.codeproject.com/KB/cpp/ExtractPDFText.aspx" rel="nofollow">http://www.codeproject.com/KB/cpp/ExtractPDFText.aspx</a> but it does not handle Chinese characters.</p> <p>I've tried to code by myself, but the encoding in PDF is really complicated.</p> <p>For example, I don't know what to refer to when I want to decode the text by the following font:</p> <pre><code>8 0 obj &lt;&lt; /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /RNXJTV+PMingLiU /DescendantFonts [ 157 0 R ] &gt;&gt; endobj 157 0 obj &lt;&lt; /Type /Font /Subtype /CIDFontType2 /BaseFont /RNXJTV+PMingLiU /CIDSystemInfo &lt;&lt; /Registry (Adobe) /Ordering (CNS1) /Supplement 0 &gt;&gt; /FontDescriptor 158 0 R /W 161 0 R /DW 1000 /CIDToGIDMap 162 0 R &gt;&gt; endobj 158 0 obj &lt;&lt; /Type /FontDescriptor /Ascent 801 /CapHeight 711 /Descent -199 /Flags 32 /FontBBox [0 -199 999 801] /FontName /RNXJTV+PMingLiU /ItalicAngle 0 /StemV 0 /Leading 199 /MaxWidth 1000 /XHeight 533 /FontFile2 159 0 R &gt;&gt; endobj </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload