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

Vector PDF / generate without rasterization? #117

Closed
abecks opened this issue Aug 26, 2015 · 0 comments
Closed

Vector PDF / generate without rasterization? #117

abecks opened this issue Aug 26, 2015 · 0 comments

Comments

@abecks
Copy link

abecks commented Aug 26, 2015

I'm generating PDFs of a webpage that are coming out at 1.5mb. The text is not selectable, it's just one big image.

Is it possible to generate a vector PDF? Much like "Save as PDF" in Chrome or Safari would generate?

I'm using the following:

webshot(url, path, {
    phantomPath: '/usr/local/bin/phantomjs',
    renderDelay: 100,
    paperSize: {
      width: '612px',
      height: '792px',
      orientation: 'portrait',
      border: '1cm'
    },
    customCSS: '.adminLayout{ zoom:0.6;}',
    settings: {
      localToRemoteUrlAccessEnabled: true,
      webSecurityEnabled: false,
    }
  }, function(err) {
    callback && callback(err, path);
  });

Edit: this may be related to: ariya/phantomjs#10373

@abecks abecks closed this as completed Mar 28, 2017
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

1 participant