infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Write PDF/TIF from embedded HL7
System
Originally posted by Jason Puskar
Hello,
Find more posts tagged with
Clovertech
Comments
Jeff Anderson
Your issue may be when you are writing the PDF file from the encoded you are adding new lines to the file and corrupting it. You have to use the "-nonewline" when writing to the file. Assuming you are base64 encoding the file here is a code snippet for decoding:
==================================
package require base64
set handle [open $pdfFile r]
fconfigure $handle -encoding binary -translation binary
set pdfData [read $handle]
close $handle
set outPDF [ base64::decode $pdfData ]
set handle [open $pdfFile.DECODED.PDF w]
fconfigure $handle -encoding binary -translation binary
puts -nonewline $handle $outPDF
close $handle
System
Originally posted by Jason Puskar
Jeff,
Thanks! I took your suggestions and applied to my script. I was able to create the files from embedded PDF's from the OBX|5 segment(s).
Jay