Mudar a imagem do export PDF

Mudar a imagem do export PDF

mfarsettimfarsetti Posts: 1Questions: 1Answers: 0

Gente estou precisando criar uma marca d'água para exportar PDF, vou colocar o texto de fundo e a imagem no topo, porem não estou conseguindo mudar a imagem do topo, é possível tirar o logo do DataTables e colocar um logo meu ? o código esta assim !

"buttons": [
{
extend: 'pdfHtml5',
customize: function ( doc ) {
doc.watermark = {text: 'NewPost Lockers', color: '#000', opacity: 0.1};
doc.content.splice( 1, 0, {
margin: [ 0, 0, 0, 12 ],
alignment: 'center',
image: 'data:image/png;base64'
} );
}

    }

Answers

  • rf1234rf1234 Posts: 2,993Questions: 87Answers: 421
    edited June 2020

    Language: Portuguese (Brazil) ...according to my translator
    Heading: Change the image of export PDF
    Body (before unformatted code):
    People I need to create a watermark to export PDF, I will put the background text and image on top, but I can not change the image on top, you can take the logo of DataTables and put a logo of mine ? the code is like this !

  • rf1234rf1234 Posts: 2,993Questions: 87Answers: 421
This discussion has been closed.