0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PDFDocumentをDiskに書き出す前に、そのサイズを知る

0
Posted at

タイトルの通りなのですが、PDFDocumentをDiskにFileとして書き出す前に、そのファイルサイズが知りたかったので調べてました。
あっさり簡単に出来てしまったのですが、メモとして残しておこうと思います。

PDFDocument *pdf = (省略) ;

ってなっているPDFを、

int pdfFileSize = [[pdf dataRepresentation] length] ;

ってやることで、Diskに書き出す前にそのサイズを取得できました。

これで、目的に一歩近づいた(笑)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?