GithubHelp home page GithubHelp logo

Comments (4)

christopherdro avatar christopherdro commented on June 2, 2024 2

@Nicolas-Menettrier Any chance you would like to turn that into a pull request?

from react-native-html-to-pdf.

neverlan avatar neverlan commented on June 2, 2024 1

Thanks a lot :)

I’ll take a look tonight.

Le 20 oct. 2016 à 14:29, Nicolas [email protected] a écrit :

All in the zip file, replace your RNHTMLtoPDF.m by this one :)

How it works :

var options = {
html: html,
height: 1300,
width: 800,
padding: 40,
base64: true, // <== new options
fileName: 'test',
directory: 'docs',
}
RNHTMLtoPDF.convert(options).then((data) => {
console.log(data.filePath);
console.log(data.base64);
});

// if base64 is set to false data.base64 will be an empty string
RNHTMLtoPDF.zip https://github.com/christopherdro/react-native-html-to-pdf/files/541657/RNHTMLtoPDF.zip

You are receiving this because you commented.
Reply to this email directly, view it on GitHub #13 (comment), or mute the thread https://github.com/notifications/unsubscribe-auth/AFltP-GOh4_ZqP9fZ6pTdfOIBiWbuymmks5q1162gaJpZM4KTZRv.

from react-native-html-to-pdf.

neverlan avatar neverlan commented on June 2, 2024

Hey :)

I'm interested if you would like to share :)

from react-native-html-to-pdf.

Nicolas-Menettrier avatar Nicolas-Menettrier commented on June 2, 2024

All in the zip file, replace your RNHTMLtoPDF.m by this one :)

How it works :

var options = {
      html: html,
      height: 1300,
      width: 800,
      padding: 40,
      base64: true,  // <== new options
      fileName: 'test',
      directory: 'docs',
}
RNHTMLtoPDF.convert(options).then((data) => {
   console.log(data.filePath);
   console.log(data.base64);
});

// if base64 is set to false data.base64 will be an empty string

RNHTMLtoPDF.zip

from react-native-html-to-pdf.

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.