AK
Size: a a a
AK
AK
%PDF-1.3
3 0 obj
<</Type /Page
/Parent 1 0 R
/Resources 2 0 R
/Contents 4 0 R>>
endobj
4 0 obj
<</Filter /FlateDecode /Length 122>>
stream
x ,=
@ G~O/ dO b= ή 6 ^~#,| y"ߏ*η-X=Ε+%rV߉C O t?#{ TIãaG]0 Q
endstream
endobj
1 0 obj
<</Type /Pages
/Kids [3 0 R ]
/Count 1
/MediaBox [0 0 595.28 841.89]
>>
endobj
5 0 obj
<</Type /Font
/BaseFont /Helvetica-Bold
/Subtype /Type1
/Encoding /WinAnsiEncoding
>>
endobj
2 0 obj
<<
/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
/Font <<
/Ff5d2de5f3a71699ae4b2d83179e62d09e6fc4126 5 0 R
>>
/XObject <<
>>
/ColorSpace <<
>>
>>
endobj
6 0 obj
<<
/Producer (FPDF 1.7)
/CreationDate (D:20190930235622)
>>
endobj
7 0 obj
<<
/Type /Catalog
/Pages 1 0 R
>>
endobj
xref
0 8
0000000000 65535 f
0000000279 00000 n
0000000467 00000 n
0000000009 00000 n
0000000087 00000 n
0000000366 00000 n
0000000628 00000 n
0000000713 00000 n
trailer
<<
/Size 8
/Root 7 0 R
/Info 6 0 R
>>
startxref
762
%%EOF
A
A
J
AK
A
A
AK
AK
func createInvoice() *gofpdf.Fpdf {
pdf := gofpdf.New("P", "mm", "A4", "")
pdf.AddPage()
pdf.SetFont("Arial", "B", 16)
pdf.Cell(40, 10, "Hello, world!")
pdf.Cell(40, 10, "Привет, мир!")
//_ = pdf.OutputFileAndClose("hello.pdf")
return pdf
}pdf := createInvoice()
c.Response.Header().Set("Content-Type", "application/pdf")
var b bytes.Buffer
err = pdf.Output(&b)
if err != nil {
return err
}
pdf.Close()
bytesPdf := b.Bytes()
return c.Write(bytesPdf)
AK
🧤K
Вキ
K🔥
🧤K
O
O
IK