Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generar PDF #594

Open
jwcaceres78 opened this issue Apr 13, 2023 · 1 comment
Open

Generar PDF #594

jwcaceres78 opened this issue Apr 13, 2023 · 1 comment

Comments

@jwcaceres78
Copy link

Hola, necesito ayuda al generar el PDF, estoy ejecutando de la siguiente manera:
`
const apiResponsePdf = await lycetApi.post(
"invoice/pdf?token=" + tokenApi,
invoice
);
const billResultPdf = apiResponsePdf.data;

await saveFile("20123456789-03-B001-1.pdf", billResultPdf);

`

invoice contiene el mismo JSON que envío para generar el XML, el XML se genera sin problemas; ya he validado que en mi servidor funciona el wkhtmltopf (mi servidor es Ubuntu 18.04); NOTA: siempre me genera un PDF en blanco, donde puedo revisar el log?

@giansalex
Copy link
Owner

funciona usando Postman?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants