この手のアプリ作っている人には既知のことなんだろうけど、このあたりでアジア言語圏で作られたPDFから抽出したテキストが文字化けするという話題があって、下記の方法で一応解決できたぽいのでメモ。 “TJ”や”Tj”のオペレータコールバックから、 static void stringCallback(CGPDFScannerRef inScanner, void *userInfo) { CGPDFStringRef rawString; bool success = CGPDFScannerPopString(inScanner, &string); if(success) { NSString* string = [[NSString stringWithCString:(const char*)CGPDFStringGetBytePtr(rawString) encoding:NSUnic
Here is an example of using a CATiledLayer to present a large, zoomable PDF in a UIScrollView. http://olivetoast.com/blog/code/SimpleTiledScrollExample.zip It’s about 50 lines of code in addition to what’s provided by the view-based app template. If you’re wondering why UIScrollView zooming is designed the way it is, CATiledLayer might be the explanation you’re looking for. Hope it proves useful t
This is a list of links to articles on software used to manage Portable Document Format (PDF) documents. The distinction between the various functions is not entirely clear-cut; for example, some viewers allow adding of annotations, signatures, etc. Some software allows redaction, removing content irreversibly for security. Extracting embedded text is a common feature, but other applications perfo
Acrobat Developer Resources¶ Acrobat products provide several ways developers can interact with Acrobat products. From the tried and true Acrobat and PDFL SDKs that have served enterprise for decades, to the new Document Services APIs that provide web-based opportunities for PDF manipulation, all SDKs provide docs, code samples, and downloads that offer maximum flexibility and speed to get you up
更新日: 2020/4/15 PDFの注釈とは PDFには注釈(Annotation)という機能があります。PDF本文の文字やグラフィックスは書面に印刷するページ内容・レイアウトをそのまま電子ファイル化したものです。これに対して注釈はコメントや校正記号などのマークアップをあとから付加する用途で使うものです。 この図はPDFの印刷原稿に注釈機能を使って校正を書き込み、それをAdobe Readerで表示した例です。一般にPDFを表示するPDFリーダーは注釈の表示はできますが、注釈の編集ができないものがあります。注釈を記入・編集するには注釈編集機能をもったソフトウエアが必要です。 本文と注釈を別々に管理 PDFファイル内ではPDFの本文(文書本体)と注釈は独立したもとのして扱われます。本文は印刷を想定して高度なページレイアウト指定が可能ですが、注釈はあくまで後から付加した情報という位置づけにな
iPad向けにPDF/マンガリーダーCloudReadersを発表してから、いままで直に付き合いがなかった出版業界の人たちからちょくちょくコンタクトをいただくようになった。その中で良くある質問の一つが、「iPad向けに最適化したPDFファイルの作り方」。そこで今日は、そのあたりのノウハウをまとめて書いてみる。 まもなく日本でも発売されようとしているiPadは色々な意味で画期的なデバイスだが、あくまで位置づけはモバイル・コンピューターであり、パソコンではない。画面も大きく、CPUも高速になったとは言え、搭載するメモリ(RAM)の量はiPhone 3GSと同じだ。 そのため、メモリがふんだんにあるパソコン用に作ったPDFファイルを読もうとすると、メモリ不足でアプリが落ちたり、極端に遅くなったりしてしまう。アプリを作る側もいろいろと対応はしてはいるが(参照)、やはり快適にiPad上でPDFファル
Get the latest news and updates! Sign up for our mailing list! PDF parsing is a black art that most programmers avoid. “Madness lurks here.” They mumble to themselves quietly. Choosing instead to push their PDFs through UIWebViews and commit other crimes against humanity. It doesn’t have to be this way, however. Parsing, displaying, and searching PDFs natively and at a low level is actually surpri
結構前になりますが、PDFファイルの表示が出来るということで試した事があります。 一応PDFの表示をする事が出来ましたが、あまりPDFビューワぽくないので、他に良い方法があるように思います。 とりあえずメモ的に残しておきます。 // PDFを貼り付けるためのImageViewを作成 UIImageView *titleView = [self newPictureView:@"000.jpg"]; titleView.userInteractionEnabled = YES; titleView.backgroundColor = [UIColor whiteColor]; // PDFファイルの読み込み CFURLRef pdfURL; pdfURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTR("t000.pdf"),
CGFontGetGlyphsForUnichars に代わる関数を呼び出せる実装を用意したよ。という話です。 最近 iPhone アプリ開発にはまっているのですが、iPhone の 高速な 2D 描画機能である Quartz で日本語を使うのに苦労したので書き残しておきます。 Quartz は Mac 向けの OSX でも採用されている、PDF の操作なども出来る高速な 描画フレームワークです。Objectice-C から呼び出せますが、基本的には C の関数を呼び出して使うようです。 例によって Apple のドキュメントが素晴らしくまとまっており、Webから閲覧出来ます。 http://developer.apple.com/mac/library/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/Introdu
学術書の電子書籍化、というのはなかなか容易ではない、ということを申し上げてきた。 これは、学術書が電子書籍化できないということをいいたいのではない。テキストが流れたり、文字の大きさを変化させたりするようなこと、すべてをすっぽりあきらめて、InDesignで組版した上で、pdfでデータを作るということは比較的容易である。pdfを書き出す時に特殊のフォントの埋め込みまでするとデータが重くなってしまうけれども。フォントの埋め込みが必要なのは、本文の明朝体の書体を固定したいということではなくて、発音記号など、普通のパソコンにインストールされていない場合には、データに組み込んでいないと表示できないから。 電子書籍というからには、画面の状態によって、フローし(流れ)てほしいと思うわけです。pdfでいいのなら、ディバイスはpdfリーダーであれば、よいということになる。 もし、テキストを活かして電子書籍を
wpsPostScript for the Web git clone https://logand.com/git/wps.git/ Log | Files | Refs | LICENSE DateCommit messageAuthorFiles+- 2019-08-28 13:13add index.html dependenciesTomas Hlavaty2+508-0 2019-08-28 13:06index.html addedTomas Hlavaty1+5122-0 2011-10-11 08:11licence addedTomas Hlavaty3+684-2 2011-10-10 20:01updated TODO commentTomas Hlavaty1+1-1 2010-01-24 20:14new operators documented and exa
会員限定サービスです 会員の方はこちら ログイン 有料会員(月額プラン)は初月無料! お申し込み 日経クロステック TOPページ
A little program that converges a (page of a) PDF file into a Scalable Vector Graphics (SVG) file which can be opened by Inkscape. It’s nothing more than a simple wrapper over the top of Poppler and Cairo but it turned out to be quite popular since when it was written there were very few other utilities to do the job! Note: since this utility was written, the maintainers of Poppler have written a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く