Export annotated documents to iPad

interest Ask. I am going to create an iPad application that displays user text pages. This text is created as follows: original XML (from the MarkLogic no-less ... server) and assets (mainly images) converted to XHTML and displayed in the objective-c native application for viewing by the user.

The user then annotates the content in two ways: selects and takes notes. Both of these parameters can be enabled by inserting some suitable tags into XHTML and returning them correctly to the application. Not a problem yet.

However - now the user wants to export the annotated document as a file and send it by e-mail (not in XHTML format) as an attachment.

I want the user to be able to export to a general file type (e.g. Odf, PDF, docx) that supports comments and highlights. This is an XHTML conversion → ??? to be done in the application.

Any ideas on the best format and how easy it is to achieve conversion in your native application using objective-c code / libraries?

Thanks in advance for your help.

+4
source share
1 answer

This will not be a completely satisfactory answer, but hopefully it helps you.

It seems that the most convenient way to do this is to send an html document to the server, perform the conversion on the server and send the received pdf file (or any other document format) back to the iphone. If you go this route, the wkhtmltopdf library looks like a decent candidate, although I never used it myself.

About five minutes of work in googling, there were several conversations about people who tried to convert html → pdf on the device itself, but in my very brief reading I did not find anything promising. Here are some starting points:

+1
source

Source: https://habr.com/ru/post/1340889/


All Articles