Skip to main content

Hi Team

I would like to know how to remove the cover page and the header ( showing from and to ) in python. Any help will be appreciated.


Here is the code im using to send

def send(self,file): # test.pdf

builder = self.rcsdk.create_multipart_builder()

builder.set_body({

'to': [{'phoneNumber': '+18885xxxxx'}],

'faxResolution': "High",

# 'coverPageText': "This is a demo Fax page from Python"

})

attachment = (file, open(file,'rb').read(), 'application/pdf')

builder.add(attachment)

request = builder.request('/account/~/extension/~/fax')

resp = self.platform.send_request(request)

print ('Fax sent. Message status: ' + resp.json().messageStatus)


Updated Figured out removing the cover page, now just need to remove headers info 🙂

builder = self.rcsdk.create_multipart_builder()

builder.set_body({

'to': [{'phoneNumber': '+18885575038'}],

'faxResolution': "High",

'coverIndex':0,

# 'coverPageText': "This is a demo Fax page from Python"

})


Hi Khanh,

I did some research but found no way to remove the fax header. So it seems impossible. But IMHO, it does not make sense to receive a fax without any information about the sender, date and time etc.


Reply