Skip to main content
Question

Remove cover page / header in Python


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)


2 replies

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"

})


PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2314 replies
  • June 14, 2019

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings