开发者

Drawing to existing PDF

开发者 https://www.devze.com 2023-04-03 12:42 出处:网络
When i did CGContextCreateWithURl(url) it created empty context even though i passed url of existing fi开发者_如何学编程le. How to get the context of existing PDF file?From my experience you can\'t ac

When i did CGContextCreateWithURl(url) it created empty context even though i passed url of existing fi开发者_如何学编程le. How to get the context of existing PDF file?


From my experience you can't actually draw directly to an existing pdf:

  1. Convert pdf to image
  2. Draw new content to that image
  3. Convert appended image to pdf

Not the smoothest, but it works.


the URL isn't an input. It's where you want the context to write the resulting PDF to.

From the documentation:

url
  A Core Foundation URL that specifies where you want to place the resulting PDF file.

0

精彩评论

暂无评论...
验证码 换一张
取 消