PdfParagraph.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. *
  3. * Copyright (c) behosoft Co.,Ltd.
  4. * All Rights Reserved.
  5. *
  6. * This software is the confidential and proprietary information of behosoft.
  7. * (Social Security Department). You shall not disclose such
  8. * Confidential Information and shall use it only in accordance with
  9. * the terms of the license agreement you entered into with behosoft.
  10. *
  11. * Distributable under GNU LGPL license by gnu.org
  12. */
  13. package com.behosoft.util.pdfutil;
  14. import java.awt.Color;
  15. import com.lowagie.text.Font;
  16. import com.lowagie.text.FontFactory;
  17. import com.lowagie.text.Paragraph;
  18. /**
  19. * <p>
  20. * Title: Wms_common_utils_pdfUtils
  21. * </p>
  22. * <p>
  23. * Description: 定义pdf的文本段
  24. * </p>
  25. *
  26. * @author daijiashun
  27. * @version $Revision$ 2009-8-17
  28. * @author (lastest modification by $Author$)
  29. * @since 1.0
  30. */
  31. public class PdfParagraph extends Paragraph implements IsPdfContent {
  32. /**
  33. *
  34. */
  35. private static final long serialVersionUID = 1L;
  36. public PdfParagraph(String content, Font font) {
  37. super(content, font);
  38. }
  39. public PdfParagraph(String content) {
  40. super(content, FontFactory.getFont(FontFactory.COURIER, 14, Font.NORMAL, Color.black));
  41. }
  42. }