I need to convert a PDF encoded as HEX, back into a base 64 string via JavaScript. I only have access to the hex string, not to the encoding tools, so I can't reverse engineer it. From what I've been told and can 'see' when I convert the hex to base64, the document is encoded with Aspose.Words for .NET.
See converted hex into string (converted to string to see if I could find anything useful):
I'm kind of at a loss here. I've tried encoding and decoding to many different formats, but the above picture is the best I've done. Is the document maybe encrypted?
Thanks
EDIT:
I've since posting tried different things. Got them to send me a couple of files retrieved decoded as XML PATH (seems to be base64), but when I try and open the file (its recognised as b64), the file is corrupted.
Converting the file from hex -> base64 -> file doesn't work (using base64.guru for testing). The file is recognised as b64, but can't load.