본문 바로가기 메뉴 바로가기

미선's Blog

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

미선's Blog

검색하기 폼
  • 분류 전체보기 (376)
    • 공부한다 (0)
      • 2021년 (0)
      • 밥줄 (0)
    • 프로그래밍 (182)
      • 자바 (0)
      • spring (3)
      • 파이썬 (9)
      • script언어 (11)
      • WEB (23)
      • Android (101)
      • OS (16)
    • 데이터관리 (36)
      • 딥러닝 (9)
      • BlockChain (18)
    • 금융 (4)
    • 이모저모 (152)
      • IT 이모저모 (94)
      • 인물 (7)
      • 프로젝트 관련자료 (7)
    • 임시작업장 (0)
  • 방명록

iText (3)
iText로 Pdf 문서 안에 다중 테이블 만들기

http://itextpdf.com/ 현재 최신버전 : 5.1.0 주요 클래스 com.itextpdf.text.pdf.PdfPTable 생성자는 초기값으로 열의 개수를 정한다. : PdfPTable(float[] relativeWidths), PdfPTable(int numColumns) com.itextpdf.text.pdf.PdfPCell 소스 : 전체 프로세스 관리 document.add(table) public void createPdf(String filename) throws DocumentException, IOException { // step 1 document = new Document(); // step 2 PdfWriter.getInstance(document, new FileOut..

프로그래밍 2011. 5. 27. 10:15
com.itextpdf.text.DocumentException: Infinite table loop

com.itextpdf.text.DocumentException: Infinite table loop Infinite table loop; row content is larger than the page (for instance because you didn't scale an image) 내용이야 알겠지만...해결책은??? 일단 원인은 PdfPCell 의 height 가 크기때문에 발생 HTML 로 작성된 중첩테이블 읽을 때 중첩테이블의 바깥쪽 테이블 cell 의 높이가 안쪽 테이블의 높이값보다 작아서 생긴 에러 메시지다. cell.setFixedHeight(고정높이값) height 값을 조절해 주니까 에러해결

프로그래밍 2011. 5. 26. 16:29
자바 iText 사용법

http://itextpdf.com/ 현재 최신버전 : 5.1.0 iText 기능 Supported by iText Partly supported by iText PDF 생성하기 public void createPdf(String filename) throws DocumentException, IOException { // step 1 Document document = new Document(); // step 2 PdfWriter.getInstance(document, new FileOutputStream(filename)); // step 3 document.open(); // step 4 document.add(new Paragraph("Hello World!")); // step 5 docume..

프로그래밍 2011. 5. 24. 12:02
이전 1 다음
이전 다음
최근에 올라온 글
최근에 달린 댓글
TAG
  • oracle
  • Java
  • 블록체인
  • IT 신문스크랩
  • IT
  • 신문스크랩
  • App Widgets
  • 환경설정
  • SQLite
  • Eclipse
  • WAC
  • jQuery
  • 이클립스
  • Tools
  • Android
  • WebView
  • Spring 3
  • 오라클
  • Spring
  • chrome
  • head first python
  • html5
  • OS
  • google I/O
  • 안드로이드
  • 인물
  • 애플
  • Head First jQuery
  • UML
  • Bitcoin
more
Total
Today
Yesterday

Blog is powered by Tistory / Designed by Tistory

티스토리툴바