English 中文(简体)
如何在A.A.(iOS)中击落图像?
原标题:How to downsample images in a pdf (iOS)?
  • 时间:2012-05-03 01:10:12
  •  标签:
  • ios
  • pdf
问题回答

我假定,你想要确定一个目标决议,支持包含图像太大的文件,把图像装入“现场”记忆(如显示“PDF”网页的要求)?

Check out the Apple sample code project Large Image Downsizing. You can modify that sample to render a PDF page (instead of an image), yet benefit from the same incremental down sampling. You can define a target resolution, and the entire source document is never attempted to be loaded into memory all at once. Instead, the destination PDF rendering is assembled in an incremental fashion, at the target resolution defined by you. You can do this regardless of what the source resolution actually is.

偏重形象只会在德国、德国、德国、德国、德国、德国、德国、德国、意大利、挪威、波兰、德国、德国、意大利、意大利、波兰、意大利、波兰、波兰、葡萄牙、波兰、葡萄牙、罗马尼亚、波兰、葡萄牙、罗马尼亚、西班牙、瑞典、瑞典、瑞典、瑞士、瑞典、瑞典、瑞士、瑞典、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞典、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞典、瑞士、瑞士、瑞典、瑞士、瑞士、瑞典、瑞士、瑞士、瑞典、瑞典、瑞士、瑞典、瑞士、瑞士、瑞典、瑞士、瑞士、瑞典、瑞士、瑞典、瑞士、瑞士、瑞典、瑞典、瑞士、瑞典、瑞典、瑞士、瑞士、瑞典、瑞士、瑞士、瑞典、瑞典、瑞士、瑞士、瑞士、瑞士、瑞士、瑞士、瑞士、瑞士、瑞典、瑞士、瑞士、瑞士、瑞士、瑞士、瑞士、瑞士、瑞士、瑞士、瑞士、瑞士、瑞典、瑞士、瑞士、瑞士、 然而,德国地理和地理统计局的交互图像没有得到支持。 在你看来,这只是意味着,只有你们的国防军掌握了后一种图像,他们才会被编成全书记,因此,希望这些图像相对较少,而你们的国防军中的大形象是以前的形式。

如“RepMe”样本所述,在 app、光机或其他地方(例如下载的“OTA”)可以存在来源的PDF。

In addition, I modified the sample to support PDF. You can download it here. In my tests, the destination PDF is rendered at the proper target resolution, including any text, glyph or vector elements as you d expect.





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签