Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to Convert my Code into Base64 Pdf formate #3069

Unanswered
saijamiuno asked this question in Q&A
Discussion options

So i need to Convert the below div into Base64 PDF formate i m getting it in base64 ( Image format ) can anyone help me out....

if a div contain some design with id = "printablediv"

const handleConvertToImage = () => {
const printableDiv = document.getElementById("printablediv");
html2canvas(printableDiv).then((canvas) => {
const image = canvas.toDataURL("image/png");
console.log(image, "image");
});
};

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /