How to get a PDF preview
You can get a PDF preview of the actual configuration using the getPDF
method returned by useZakeke
hook , this one will return an url of a pdf with the screenshot (of a resolution of 2048x2048px) in it of the actual configuration.
Below an example of a button that will let download this pdf:
Usage
import { useZakeke } from "zakeke-configurator-react";
const App = () => {
const { getPDF } = useZakeke();
const url = await getPDF();
return <PDFbutton url={url} onClick={() => window.open(url, "_blank")} />
};