signintech / gopdf

A simple library for generating PDF written in Go lang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please help me understand why this PDF file was imported with an error message

yangyang20 opened this issue · comments

Please help me understand why this PDF file was imported with an error message
11524355_1-5.pdf
`pdf := gopdf.GoPdf{}
pdfRect := gopdf.Rect{W: pdfWidth, H: pdfHeight}
pdf.Start(gopdf.Config{PageSize: pdfRect})

pdf.AddPage()

tpl1 := pdf.ImportPage(inputPath, 1, "/MediaBox")

pdf.UseImportedTemplate(tpl1, 0, 0, pdfRect.W, pdfRect.H)

pdf.WritePdf("t2.pdf")`

Hi, the ‘ImportPage’ function relies on the phpdave11/gopdi library for its underlying function. I would kindly suggest reporting the issues directly to gopdi project.

@oneplus1000 can you close this issue if it has been resolved? This issue appears to be related to another library.