Comments (4)
@Nicolas-Menettrier Any chance you would like to turn that into a pull request?
from react-native-html-to-pdf.
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.
Hey :)
I'm interested if you would like to share :)
from react-native-html-to-pdf.
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
from react-native-html-to-pdf.
Related Issues (20)
- Hyperlinks don`t work for Android HOT 2
- 'React/RCTConvert.h' file not found' in xcode 13 React Native 0.64.3 HOT 4
- Preview PDF after creating HOT 5
- How to Remove padding in android ? HOT 1
- in html content conditional statement are not wokring HOT 2
- PDFs of identical contents have different checksum every run HOT 1
- How can I add a footer & header to each page? HOT 3
- can i use this package on react native windows? HOT 2
- When there is a qrcode in Html it not shows in pdf - android HOT 1
- Crash in iOS HOT 1
- Unable to display pageNumber in pdf for Ios HOT 1
- is there a way to generate pdf without page break?
- Item's background colors is not showing in ios HOT 8
- How to add <img> html tag with local image in RN project folder? HOT 2
- This library is not working in the android SDK 33 HOT 3
- [TypeError: Cannot read property 'convert' of null] HOT 3
- Creating an extra page in the pdf in iOS, when creating page by loops
- Error when building the app on android
- CSS `background-color` and `background` property doesn't work on iOS HOT 5
- generate pdf on a single page HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-html-to-pdf.