Coder Social home page Coder Social logo

PDF logo about tabletools HOT 7 OPEN

rikkert avatar rikkert commented on July 20, 2024
PDF logo

from tabletools.

Comments (7)

 avatar commented on July 20, 2024

Yup good idea! This is possible using AlivePDFs addImageStream() method. The Flash part would need to pull in the URL as a binary stream and then stick it into the PDF using that method. I have do this locally before, but not loading in a remote image. Scaling and position parameters would also need to be considered.

from tabletools.

beebek avatar beebek commented on July 20, 2024

As I dig into TableTools.js

I found only

    "sAction": "flash_pdf",
    "sNewLine": "\n",
    "sFileName": "*.pdf",
    "sButtonClass": "DTTT_button_pdf",
    "sButtonText": "PDF",
    "sPdfOrientation": "portrait",
    "sPdfSize": "A4",
    "sPdfMessage": "",

Where is the option to put the logo ??
I want to include local logo image.

from tabletools.

 avatar commented on July 20, 2024

You aren't doing anything wrong - the PDF export option doesn't currently have an image option, which is why this issue is open.

from tabletools.

beebek avatar beebek commented on July 20, 2024

Also the orientation and image size are not working,

"sPdfOrientation": "portrait",
"sPdfSize": "A2",

This settings must have worked, isn't ist???

from tabletools.

 avatar commented on July 20, 2024

sPdfSize - from the documentation: "String - 'A[3-4]', 'letter', 'legal' or 'tabloid'" . A2 is not an option.
http://datatables.net/extras/tabletools/button_options#sPdfSize

sPdfOrientation - portrait is the default, so setting it would cause no changes

http://datatables.net/extras/tabletools/button_options#sPdfOrientation

from tabletools.

 avatar commented on July 20, 2024

Reopening - forgot that this was a bug about images, not sPdfSize etc.

from tabletools.

rogerramosme avatar rogerramosme commented on July 20, 2024

+1

from tabletools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.