I wanted to ask if there is a way to do some kind of form filling on the IOS , preferably to be used on iPad Pro, so to have the ability to sign the document as well with the apple pencil, then once document is finished to be saved as PDF and saved on a database as Blob and sent as well via email.
So my questions are :
Is there a way to create reports for IOS apps ?
Those reports can be saved as PDF ?
Is there a way to use the apple pencil for digital signature or should i use a canvas and draw on it, then export the canvas as picture and put it in the report .
The solution I have used for this is to generate HTML on the iPad and send the HTML to a server that has wkhtmltopdf or phantomjs running in the background.
Those two services will generate a PDF file using HTML as the input.
Thanks for that but unfortunately i dont have access to the outside as it is one inside project and i dont have access to any apps other than the ones on the ipad.
I noticed that on Numbers on the iphone you have an option share and then it asks you on which format you should use it if you want to send it by mail, then you have Numbers , PDF, Excel, CSV so i guess they do have some magic in the app there and it can be done via phone side,i will try to dig into the apple dev forum if they have something related to that .
[quote=333314:@jean-paul devulder]Want free soluce or paid ?
Some tools can be ported to Xojo, but need some time and not sure have a market for that ;)[/quote]
Well depends what does that mean, if its a reasonable price then i dont mind paying for it .
I`ll check as well what there is out there and update the thread, let me know if you have something.
PDF is “Xojo for iOS” should be “easy”… depending on how “Xojo for iOS” handles normal printing… if they use a CGContext then its just a matter of using a specific subclass, the rest of the commands remain the same (kind of like my gPDF class for Desktop)
Well so far I did not found a functional working solution to it, as for Jeremie Leroy I specified multiple times, if not then I doit now again, due to the data content Im not allowed to share that data nowhere the internet so Im obliged to have it locally . In the end I could have a server running on a Mac with luna for example and use https://wkhtmltopdf.org for exporting and do some things with the html to export the doc, which is my second option as for the last few months no luck with iOS only but again I would prefer to have something local.
Can some one educated me as to why a simple method using the iOS PDF context cannot be created?
Its basically the same as a CGContext, but with a few more parameters (pagesize etc)
WARNING… THE BELOW CODE IS “NOT” XOJO CODE, AND IS FOR ILLUSTRATION PURPOSES ONLY
let pageSize = CGSize(width: 792,height: 612)
UIGraphicsBeginPDFContextToFile(pdfPATH, CGRect.zero, nil)
UIGraphicsBeginPDFPageWithInfo(CGRect(x: 0, y: 0, width: pageSize.width, height: pageSize.height), nil)
let pdfContext : CGContext = UIGraphicsGetCurrentContext()!
...... DRAW PDF CONTENT ..... [just like you would for CGContext]
UIGraphicsEndPDFContext() // CLOSE PDF Document
I would think it would just be a slightly different initiation of what Xojo calls a “CANVAS”
I found that adding a sharing panel to the view in iOS, with button to activate it allows ‘printing’ to Notes, Mail, iMessage and social media, including Whats App if installed, or to a text document (without formatting)
The open action of the button should have something like:
SharingPanel1.ShareText(TextArea.text, Self, Me), where the TextArea is Text.
Once stored in Notes, there is an additional option available to save to a .pdf file, retaining the formatting seen in the note.
These actions are part of the newer iOS. It would be cool if Xojo could tap into the features, as Dave suggests.
I don’t know enough about declares to work it out, but perhaps we should be taking another look at the apple version of the sharing panel? It seems to have additional functionality now.
Also, worth taking a look at the link Jeremie has posted. It looks like he has done something along these lines.
Are you using the iOSSharing panel or the sharing panel (UIActionController) from iOSKit? The later is more fully featured if that is what you are looking for…
Just the one available in the Library - it says iOSSharing panel in the expansion when it is highlighted.
I giess I would like to learn how to use the sharing panel (UIActionController) from iOSKit