Converting binary data into PDF

malkishtini malkishtini at gmail.com
Thu May 28 16:20:48 EDT 2020


Hi Mike,
Thank you for your response.

Just to make it clear, I'm looking for a way to convert the binary report (which is a result of the brainy data pdfdriver) to a pdf file "outside" Omnis.

I'm sorry if I was not clear enough in my initial email/question.

Best regards,
Mayada
-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of Mike Matthews - Omnis
Sent: Thursday, May 28, 2020 4:09 PM
To: OmnisDev List - English
Subject: Re: Converting binary data into PDF

Indeed.  And this example should help Das as well.

Two birds with one stone, fantastic!

Mike




Mike Matthews

omnis at lineal.co.uk<mailto:omnis at lineal.co.uk>

Lineal Software Solutions
01271 375999
Commercial House, The StrandBarnstaple, Devon, EX31 1EU
www.lineal.co.uk<http://www.lineal.co.uk>


On 28 May 2020, at 21:02, Doug Easterbrook <doug at artsman.com<mailto:doug at artsman.com>> wrote:

by binary data, I assume you mean reports.

so you can send a report to a window and then use a report binary to populate it.


that is just using $cdevice and assinging it to memory.

Do $cdevice.$assign($devices.Memory)

Do $prefs.$reportdataname.$assign('')
Do $prefs.$reportdataname.$assign(nam(iReportBinary))


from memory — you have a report you can assign to another $device.


so we send it to brainydata’s   pdfDevice … and thats it.



Do $devices.[kDevPdf].$setparam(kDevPdfFileName,tempPathName)     ;; V92004 use kdevpdf
Set reference CurrentDevice to $cdevice ;; restore the device after
Do $cdevice.$assign($devices.[kDevPdf])     ;; V92004
Do $cinst.$print
Do $cdevice.$assign(CurrentDevice).   ;; restore device

Doug Easterbrook
Arts Management Systems Ltd.
mailto:doug at artsman.com
https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fwww.artsman.com&c=E,1,7NNk0qejgXAerZW6K6JsP78RZaWYJv5fTiuc699BJ42_dHCZcbQ-uJ1DV9_tFNKzL_o2CoSRCj7V4PHNiWUC6t2m_47kj0KBnu2fr7opfQ87SQ,,&typo=1
Phone (403) 650-1978

On May 28, 2020, at 12:48 PM, malkishtini <malkishtini at gmail.com> wrote:

Hi $all,
I'm using brainy data pdf driver for printing files to memory; which results in saving the report in a binary var that I send out as a response from an Omnis API.

Now we need to convert binary variable to a pdf.
Any one has done this or something similar before and was able to print the pdf successfully from binary var? if yes, what tools you used?

Thank you,
Mayada


_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=http%3a%2f%2flists.omnis-dev.com&c=E,1,hmSTxsMCGSB5kjYIRCG-vJVesUnGksf6ggxkivWkYM8VM_2JYEvt94c7xN4XvAo8BF6FqBVUMpDpEqautF1lAvV25oXjnUW62afx3Uu7u-vn-AReSJzyd73zyws,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=http%3a%2f%2flists.omnis-dev.com&c=E,1,uHZZqKUYQEttwvFArAQ01QnGU8KAC14MCkoOutoXDIx8ctXrQmJqRNa0TGJFf1kCe_A91c59oegsLpU4-47oKB9UYqX0V2ST1PGFMQRI_WfCmSqD0RMkNSLVOg,,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com

_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 




More information about the omnisdev-en mailing list