Skip to main content
Participant
October 12, 2022
Question

Octect-Stream conversion

  • October 12, 2022
  • 2 replies
  • 380 views

I know this is a common problem, but after days I finally have reached the end of the Merging Document Generation API (from docx to pdf with JSON fields), now using Postman (than I want to use with my database).

I obtain a octect-stream text, with 2 "Boundaries" parts. The second one I think is the final PDF.

How do you trasform the text into PDF? Do I need to exclude/delete the first part with JSON data?

And why the Base64Decode is not working with this?

Finally, how can I have more information, and decide if to buy or not Adobe services, if documentation is so poor?

This topic has been closed for replies.

2 replies

Raymond Camden
Community Manager
Community Manager
October 12, 2022

It sounds like you are using the older REST API, I strongly urge you to try the newer one. It is far simpler. Introductory blog post: 

 

https://blog.developer.adobe.com/announcing-the-new-adobe-document-services-rest-apis-8d85951176cf?source=collection_home---7------2-----------------------

 

Legend
October 12, 2022

The "boundaries" thing you refer to sounds like MIME-encoded multipart data. Just find a library designed to decode this into its parts. Don't guess the format, there will be complexities that the library is designed to handle.