유니티(unity)
[c#/unity] 유니티에서 pdf 생성(with iTextSharp 5.0 )
개발자 고포고
2024. 2. 27. 15:50
반응형
#iTextSharp 5.0 사용
-패키지매니져
NuGet\Install-Package iTextSharp -Version 5.5.13.3
-다운로드 경로
https://drive.google.com/file/d/1mw700dU_6L8yDe4GNh8cn384Tkyg5jjc/view?usp=sharing
itextsharp.dll
drive.google.com
해당 DLL 유니티 폴더 복사 후 사용
-코드
public void CreatePdf(string path)
{
Document document = new Document();
PdfWriter.GetInstance(document, new FileStream(path, FileMode.Create));
document.Open();
document.Add(new Paragraph("Hello World!"));
document.Close();
}
#유니티
#PDF 생성
#C#
반응형