# Creating PDF Documents

**URL:** <https://forums.kodeco.com/t/creating-pdf-documents/40864>\
**Category:** iOS\
**Created:** [March 27, 2018, 2:37am UTC](https://forums.kodeco.com/t/creating-pdf-documents/40864 "2018-03-27T02:37:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jport1130](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jport1130/32/102075_2.png) [@jport1130](https://forums.kodeco.com/u/jport1130)\
**Post date:** [March 27, 2018, 2:37am UTC](https://forums.kodeco.com/t/creating-pdf-documents/40864/1 "2018-03-27T02:37:27Z")

</div>

Does anyone have any suggestions on how to create PDF documents? Is core graphics the best way?

Thank you.

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [March 27, 2018, 4:07am UTC](https://forums.kodeco.com/t/creating-pdf-documents/40864/2 "2018-03-27T04:07:15Z")

</div>

@jport1130 Thanks very much for your question! [Here](https://developer.apple.com/library/content/documentation/2DDrawing/Conceptual/DrawingPrintingiOS/GeneratingPDF/GeneratingPDF.html) is a tutorial from Apple (albeit it’s a bit dated and in Objective-C) on how to generate pdf’s.

I hope this helps!

All the best.

---

<div class="post-metadata">

**Author:** ![jayantvarma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jayantvarma/32/111768_2.png) [@jayantvarma](https://forums.kodeco.com/u/jayantvarma)\
**Post date:** [April 4, 2018, 10:35pm UTC](https://forums.kodeco.com/t/creating-pdf-documents/40864/3 "2018-04-04T22:35:35Z")

</div>

@jport1130,  
short answer, the apple code uses core graphics. If you have used core graphics to draw in memory images, then the only difference here is that instead of using a `UIGraphicsBeginImageContext`, you use a `UIGraphicsBeginPDFContext` and draw exactly as you would in an image and when done, finish with the `UIGraphicsEndPDFContext` instead of `UIGraphicsEndImageContext`.

cheers,

Jayant

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [September 9, 2018, 6:46pm UTC](https://forums.kodeco.com/t/creating-pdf-documents/40864/4 "2018-09-09T18:46:12Z")

</div>

Closed on September 9, 2018, 6:46pm UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
