Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF logo #6

Open
rikkert opened this issue Oct 14, 2011 · 7 comments
Open

PDF logo #6

rikkert opened this issue Oct 14, 2011 · 7 comments

Comments

@rikkert
Copy link

rikkert commented Oct 14, 2011

Not really an issue but more a request.

It would be great to be able to add your own logo to the generated PDF.
Similiar to sPdfMessage, sPdfLogo could be added that excepts an URL to the logo to include at the top of the first page in the generated PDF.

@DataTables
Copy link
Collaborator

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.

@beebek
Copy link

beebek commented Aug 19, 2013

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.

@DataTables
Copy link
Collaborator

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

@beebek
Copy link

beebek commented Aug 20, 2013

Also the orientation and image size are not working,

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

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

@DataTables
Copy link
Collaborator

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

@DataTables
Copy link
Collaborator

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

@rogerramosme
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants