Does Swift have a relevant API to generate pages documents?

I want to implement a function to generate a report in the form of pages using the model data of the iOS application.

I didn't find the relevant API.

Please help me find a relevant SDK and some examples.

Thanks.

Answered by DTS Engineer in 894772022

To be clear, Swift doesn’t have APIs. Swift is a programming language that runs on many different platforms, and each of those platforms has their own set of APIs.

So, your question is actually: Does iOS have APIs for generating Pages documents? And the answer to that is “No.” Moreover, the Pages document format isn’t documented for third-party use, so there’s no support path for creating a third-party library for doing this [1].

Pages can open a variety of document formats that are documented for third-party use. The most obvious of those is RTF, and Apple platforms do have APIs for generating RTF documents.

Oh, and if you’d like Apple to consider created an API for creating Pages documents, you can file an enhancement request outlining your requirements. And if you do file this ER, please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] Although I expect you’ll find some folks have done this via reverse engineering.

Accepted Answer

To be clear, Swift doesn’t have APIs. Swift is a programming language that runs on many different platforms, and each of those platforms has their own set of APIs.

So, your question is actually: Does iOS have APIs for generating Pages documents? And the answer to that is “No.” Moreover, the Pages document format isn’t documented for third-party use, so there’s no support path for creating a third-party library for doing this [1].

Pages can open a variety of document formats that are documented for third-party use. The most obvious of those is RTF, and Apple platforms do have APIs for generating RTF documents.

Oh, and if you’d like Apple to consider created an API for creating Pages documents, you can file an enhancement request outlining your requirements. And if you do file this ER, please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] Although I expect you’ll find some folks have done this via reverse engineering.

Does Swift have a relevant API to generate pages documents?
 
 
Q