vbauer / manet

Website screenshot service powered by Node.js, SlimerJS and PhantomJS
MIT License
575 stars 102 forks source link

back ground color of some html element does not support by manet whe i try to generate pdf from web page #38

Closed ChandanKar closed 8 years ago

ChandanKar commented 8 years ago

example:

  • Chandan
  • for the above code i have found the issue.. please let me if i'm wrong

    vbauer commented 8 years ago

    I'm not sure that it is Manet issue (probably you found some bug in PhantomJS), but could you please provide me URL which I can test?

    ChandanKar commented 8 years ago

    thanks for the reply. Actually the website has not been published or deployed yet in cloud so i'm sorry i cant provide u that. your comment is really helpful to me and i appreciate it.

    ChandanKar commented 8 years ago

    hi, is it possible in manet to add color in a div element and save that as it was in pdf. This color related is is not found in any kind of image like png, jpeg, jpg.

    vbauer commented 8 years ago

    You can try to change this line to add your custom CSS: https://github.com/vbauer/manet/blob/master/src/scripts/screenshot.js#L16

    At the current moment, you haven't got any other option to configure custom styles.

    ChandanKar commented 8 years ago

    thanks.. and let me check this once..