DocuSign CLM download PDF document - pdf

I'm following the api documentation trying to download a pdf document into PDF. I'm trying to simulate this in Postman first, before delving in code.
I have used many of their apis successfully, but can't get the download one. The docs say to download a document by id:
https://apidocsqana11.springcm.com/apidocs#!/Content/Content_Get
Implementation Notes Specify file type of document (image, PDF) in
ACCEPT header. Do not specify an ACCEPT header for native format
Response Class string
Response Content Type: application/json
So, I tried adding Accept and content-type as application/pdf in my postman to see if I will get a pdf document, but keep getting the response as normal json. I'm trying to get back a pdf doc not json response.

Related

How to send local image to chat using incoming webhook

Facing issue while send the local image to google chat room using web hook.
attachment = open("images.jpg", "rb")
bot_message = {"cards": [{ "sections": [{"widgets": [{"image": attachment}]}]}]}
print (bot_message)
message_headers = {'Content-Type': 'application/json; charset=UTF-8'}
Error:
TypeError: Object of type BufferedReader is not JSON serializable
Issue roots from BufferedReader not JSON serializable which is caused by image widget expecting a URL instead.
Alternative is that, you need to upload your file to an image hosting site first (e.g. imgur) and then use the url of the posted image to the image widget's image url. For this one, see Imgur API docs.
Reference:
Image Widget requiring URL
uploading a file to imgur via python

Read application/pdf from Request Body - .NET CORE

I am submitting a PDF file to my .NET CORE back-end.
The PDF was created using iText 7. I have added to the page few paragraphs and a PdfButtonFormField button with the following action
button.SetAction(PdfAction.CreateSubmitForm("http://localhost:4200/api/PdfSign/UploadPdfForSign", null, PdfAction.SUBMIT_PDF));
My endpoint gets the request. It looks like the request body has the binary data of the file but I have no idea how to read it.
Any help will be much appreciated!
** EDIT **
The goal is to get a PDF and sign it using iText.
The flow is - I am creating a PDF, adding the button to it and sends it to my customer. They do whatever they do on the PDF and send it back using the button from within the PDF.
I then want to read the details in my back end and sign it.
Hope this clears things.
Thank you,
Yaniv

Is it possible with Print.js to send the PDF to storage in a folder online instead of printing it?

I am trying to use print.js(crabbly) https://github.com/crabbly/print.js to send a PDF to a folder on my website instead of printing it.
My task is to save form data into a PDF and save the PDF in a folder on my website once the user submits. I like the way print.js creates the PDF and sends it to print but I need it to send to my folder...maybe through php?
Thanks for anyone's help!!
You need to handle that form submission on the server side. Once you receive the form request or the payload, you can then use it to create your own PDF.
Looks like you may be using Php in the back-end, if that's the case, the FPDF class should have everything you need to create your PDF:
http://www.fpdf.org/
If you use Laravel, here is a convenient package wrapping the FPDF class so we can import it with composer:
https://github.com/crabbly/fpdf-laravel

Display pdf in iframe using ssl/https based

I want to Showing PDF inside iframe for user preview before download the file or print,
i use byte array convert my report file to pdf then showing it.
everything was perfect until i need something in ssl/https.
because of that i must change my application to ssl/https can some one show me how can i show pdf in this condition.
thanks for listening and reading my prob.
here my code
reportDocument.Load(reportPath);
reportDocument.SetDataSource(dataSet);
_contentBytes = StreamToBytes(reportDocument.ExportToStream(ExportFormatType.PortableDocFormat));
.....
//setting header
.....
//then flush
stream.Flush();
i found the solution in
PDF conversion suddenly fails if reading stylesheet from SSL
the problem is the pdf reader inside my chrome browser.
so i updating my chrome reader in store search pdf viewer..
just it..

Google Drive's html to Docs document conversion corrupted since 2 Oct

We have been using Google Drive SDK for our app.
Since 2 October, when our app tries to create a Google Docs native document by uploading a html file contains img tags, the result become partly corrupted. Although the upload request finishes without error, all the images in the html are lost in the created document.
The behavior is not usual. For nearly two years, basically, the conversion for document insertion had interpreted the img tags and created embedded images. It seems like a server side problem exists.
Is it a known issue and would be fixed?
Or, is there something I'm missing and it is correct behavior?
[About the htmls we use]
The htmls for upload are based on exported "text/html" files from existing Google Docs documents.
All the img tags have src attribute with absolute url. They start with https and all of them are links on googleusercontent.com.
Apart from the img tags, all the html tags seems to be handled as before.
[How to reproduce the problem]
This problem can be reproduced by using DriveSample app in "Google APIs Client Library for Objective-C". Modify "DriveSampleWindowController.m" to force document conversion turned on (i.e., query.convert=YES;) just before uploading a file to Drive.
Download an existing Docs document with images as html.
Upload it as a new document to Google Drive (with document conversion turned on).
Open the uploaded document in 2 with Google Docs web editor. All images would be lost in the document. Also, no spinning wheels will be shown for the lost image areas.
The problem seems fixed on the server side within the last half day. Thank you for fixing it, Google.