#25 Create PDF Invoice in iText 7 Java

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 50

  • @sanjayajanakantha7883
    @sanjayajanakantha7883 Рік тому

    Thank you! I used itext7-7.0.4 and used slf4j-api-1.7.9 and slf4j-jdk14-2.0.2 as dependencies for itext7. and it works well

  • @deroh21
    @deroh21 2 роки тому +2

    Thank you for sharing this video, it's very helpful.
    for those who are having trouble , consider using version 7.0.4
    Everything will work out well including .addCell(new Cell().add("String"));

  • @AccuratePreparation
    @AccuratePreparation 2 роки тому

    Best & Easy Way Tutorial...

  • @harambetidepod1451
    @harambetidepod1451 Рік тому

    Thank you sir

  • @shriharigosavi6958
    @shriharigosavi6958 3 роки тому +3

    I'm not able to use add method from Cell class, for String content. What should I do?

    • @SarthiTechnology
      @SarthiTechnology  3 роки тому +1

      Join my telegram group and share screen shot of your code.

  • @JoakoRandom
    @JoakoRandom Рік тому

    Very helpful for me. A hug from Mexico

  • @shakif3460
    @shakif3460 3 роки тому +1

    Upload More Java and android video.. Thanks for all..

  • @francoisaissan6519
    @francoisaissan6519 2 роки тому

    Very helpful for me.

  • @subashraj3919
    @subashraj3919 3 роки тому

    Thanks for the Video.. Can you please make a video for Footers

  • @sefakurt1612
    @sefakurt1612 2 роки тому +1

    I couldnt import com.itextpdf.layout.* how can Find it because when I look into dependency file there is no folder called layout . So what should I do?

  • @ankursharma1461
    @ankursharma1461 Рік тому

    In the third table, why are you hardcoding the items, shouldn't it be populated dynamically?

    • @SarthiTechnology
      @SarthiTechnology  Рік тому

      This is only for demonstration purposes. Dynamically values should be added.

  • @sarikagarg8185
    @sarikagarg8185 3 роки тому +1

    in column width whether width of one is equal to one alphabet or in pixel. what is maximum width of A4 Paper (210mm) but in pixels..

    • @SarthiTechnology
      @SarthiTechnology  3 роки тому +1

      It is very simple.
      1. Just convert mm to inch.
      2. Multiply value x ppi. ( 72ppi)
      For A4: 8.3 x 72 = 597.6 (598)
      598 pixels

  • @marcelolarrea4583
    @marcelolarrea4583 3 роки тому +1

    It was really useful for my purpose at the moment.....thanks so much.... 🍺

  • @sarikagarg8185
    @sarikagarg8185 3 роки тому

    Can I view PDF file in my java program. That is making a pdf viewer in java

  • @barkhagupta5991
    @barkhagupta5991 2 роки тому

    Any video on set pageevent

  • @kiranduba5580
    @kiranduba5580 Рік тому

    After adding blank paragraph, want to add a plain line with red color, how to do that?

  • @jinhayu
    @jinhayu 2 роки тому

    is it possible to fill the tables with data from a database using SQL?

    • @SarthiTechnology
      @SarthiTechnology  2 роки тому

      Yes

    • @jinhayu
      @jinhayu 2 роки тому

      @@SarthiTechnology Is there already a tutorial for this?

    • @SarthiTechnology
      @SarthiTechnology  2 роки тому

      Not credited yet but I am planning to make a video.

    • @jinhayu
      @jinhayu 2 роки тому

      @@SarthiTechnology is there a link where I can read something about the knowhow? Need it now for my software project at the university

    • @SarthiTechnology
      @SarthiTechnology  2 роки тому

      At this time I don't have.

  • @racontemoi4682
    @racontemoi4682 2 роки тому

    Please which version of itex,are you using.Your methods are not working for me.I use version 7.1.1

    • @SarthiTechnology
      @SarthiTechnology  2 роки тому +1

      In these examples I have used 7.0.2 version.

    • @maheshbabut4330
      @maheshbabut4330 2 роки тому

      @@SarthiTechnology can you specify jdk is it supporting 8+ like 11 or jdk 15 because i tried with all versions of itext it shows cannot import itext document pdfwriter and all

  • @gravurenking_de
    @gravurenking_de Рік тому

    how do I add strings with special characters like äöüß ? I tried loading a new font and re-converting the string to UTF-8 but it always shows wrong characters for hardcoded strings. It works when I get the text from another source though, like an input field

    • @wiko211
      @wiko211 Рік тому

      try using some font that can display those characters - " BaseFont bf = BaseFont.createFont("FallingSkyLight-K2EX.otf",
      BaseFont.CP1250, BaseFont.EMBEDDED);"

  • @taxi0912
    @taxi0912 2 роки тому

    How can we add rupee symbol in this invoice

  • @mosesfrancis4976
    @mosesfrancis4976 3 роки тому +1

    How to use Tamil font?

  • @ARJ160
    @ARJ160 3 роки тому

    i have an doubt ..in this u are using Table..but i don't know which table u are import

  • @deepakdogra1318
    @deepakdogra1318 Рік тому

    How to merge multiple pdf in Java without any external library,I am trying with printwriter it is not working,I am trying to read two pdf file and write into third pdf file??

    • @SarthiTechnology
      @SarthiTechnology  Рік тому

      At least you need to use external library. Apache PdfBox is free and open source that you can use.
      ua-cam.com/video/ZS1YSNor6-I/v-deo.html
      ua-cam.com/video/a3sGQ6iKZHY/v-deo.html

  • @후데기
    @후데기 3 роки тому

    I got a PDF in Java and I want to split the screen. What should I do?
    Episode 1, Episode 2... I want to distribute pages like this.

    • @SarthiTechnology
      @SarthiTechnology  3 роки тому

      Not understanding your concern. What did you mean by split the screen?

    • @후데기
      @후데기 3 роки тому

      @@SarthiTechnology If there are 1st and 2st on one screen, I want to see once on page 1 and twice on page 2.

  • @AutomationTestingStudio
    @AutomationTestingStudio Рік тому

    please share git repo

  • @haidarali1696
    @haidarali1696 3 роки тому

    How to put hindi text in pdf make video plz

  • @sarikagarg8185
    @sarikagarg8185 3 роки тому

    some times when table is too big then new page added automatically to pdf file and a warning is issue."[main] WARN com.itextpdf.layout.renderer.RootRenderer - Element does not fit current area.". How to know that the content being added need new page to be added to PdfDocument.

  • @aswinramachandran7103
    @aswinramachandran7103 3 роки тому

    when i type line 24 table.addCell(new Cell().add("INVOICE")); The invoice gets underlined in red why is that it is so annyoing i have tried for hours to find out why but i cannot please tell why this happens

    • @akshayramsorrun651
      @akshayramsorrun651 3 роки тому +1

      make your text in a new Paragraph object like so: table.addCell(new Cell().add(new Paragraph( "INVOICE")). I've read the version in video it has been deprecated(stackoverflow.com/questions/56508788/itext-add-table-cell-data-downwards). hope it works.

    • @priteshbohrade8
      @priteshbohrade8 3 роки тому

      @@akshayramsorrun651 Not working even after putting in new paragraph..it asking to cast block element and then block element does not resolved error coming when running.

    • @rodrigo6459
      @rodrigo6459 2 роки тому

      @@akshayramsorrun651 Worked here! thnx!