Greetings!
I've come across a weird bug that, when using exportComponentAsPDF , my component is exported in jpeg format and the file is corrupted. As far as I've tested, this behavior happens in all browsers except for Firefox. My implementation is as following:
import { exportComponentAsPDF } from 'react-component-export-image';
...
<Button
className='DownloadBtn'
onClick={()=>{exportComponentAsPDF(stickerRef,{fileName: `${id}.jpeg`,pdfOptions:{pdfFormat: 'a6',w:105,h:148,unit:'mm'}})}}>
Baixar etiqueta
</Button>