🐛💄
This commit is contained in:
@@ -9,8 +9,6 @@ import { SigningStatus, DocumentStatus } from "@prisma/client";
|
|||||||
import { getDocument } from "@documenso/lib/query";
|
import { getDocument } from "@documenso/lib/query";
|
||||||
import { Document as PrismaDocument } from "@prisma/client";
|
import { Document as PrismaDocument } from "@prisma/client";
|
||||||
import { insertImageInPDF, insertTextInPDF } from "@documenso/pdf";
|
import { insertImageInPDF, insertTextInPDF } from "@documenso/pdf";
|
||||||
import { create } from "domain";
|
|
||||||
const text2png = require("text2png");
|
|
||||||
|
|
||||||
async function postHandler(req: NextApiRequest, res: NextApiResponse) {
|
async function postHandler(req: NextApiRequest, res: NextApiResponse) {
|
||||||
const existingUser = await getUserFromToken(req, res);
|
const existingUser = await getUserFromToken(req, res);
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export async function insertImageInPDF(
|
|||||||
const drawSize = { width: 213, height: 50 };
|
const drawSize = { width: 213, height: 50 };
|
||||||
|
|
||||||
pdfPage.drawImage(pngImage, {
|
pdfPage.drawImage(pngImage, {
|
||||||
x: pdfPage.getWidth() - positionX - drawSize.width,
|
x: positionX,
|
||||||
y: pdfPage.getHeight() - positionY - drawSize.height,
|
y: pdfPage.getHeight() - positionY - drawSize.height,
|
||||||
width: drawSize.width,
|
width: drawSize.width,
|
||||||
height: drawSize.height,
|
height: drawSize.height,
|
||||||
|
|||||||
Reference in New Issue
Block a user