kandi background
Explore Kits

PdfLayoutManager | Adds line-breaking , page-breaking , tables , and styles | Grid library

 by   GlenKPeterson Java Version: Current License: No License

 by   GlenKPeterson Java Version: Current License: No License

Download this library from

kandi X-RAY | PdfLayoutManager Summary

PdfLayoutManager is a Java library typically used in User Interface, Grid, Latex applications. PdfLayoutManager has no vulnerabilities, it has build file available and it has low support. However PdfLayoutManager has 6 bugs. You can download it from GitHub, Maven.
LayoutManager1 may still be updated to ease users transition to LayoutMgr2 by copying the API of similar classes. Significant new features will only be supported by LayoutMgr2. LayoutManager1 is a wrapper for PDFBox to add line-breaking, page-breaking, and tables. It uses a box-model (like HTML) for styles. Requires PDFBox which in turn requires Log4J or apache commons Logging.
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • PdfLayoutManager has a low active ecosystem.
  • It has 42 star(s) with 19 fork(s). There are 10 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 8 open issues and 10 have been closed. On average issues are closed in 28 days. There are 2 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of PdfLayoutManager is current.
PdfLayoutManager Support
Best in #Grid
Average in #Grid
PdfLayoutManager Support
Best in #Grid
Average in #Grid

quality kandi Quality

  • PdfLayoutManager has 6 bugs (0 blocker, 0 critical, 3 major, 3 minor) and 224 code smells.
PdfLayoutManager Quality
Best in #Grid
Average in #Grid
PdfLayoutManager Quality
Best in #Grid
Average in #Grid

securitySecurity

  • PdfLayoutManager has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • PdfLayoutManager code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
PdfLayoutManager Security
Best in #Grid
Average in #Grid
PdfLayoutManager Security
Best in #Grid
Average in #Grid

license License

  • PdfLayoutManager does not have a standard license declared.
  • Check the repository for any license declaration and review the terms closely.
  • Without a license, all rights are reserved, and you cannot use the library in your applications.
PdfLayoutManager License
Best in #Grid
Average in #Grid
PdfLayoutManager License
Best in #Grid
Average in #Grid

buildReuse

  • PdfLayoutManager releases are not available. You will need to build from source code and install.
  • Deployable package is available in Maven.
  • Build file is available. You can build the component from source.
  • Installation instructions are not available. Examples and code snippets are available.
  • PdfLayoutManager saves you 1092 person hours of effort in developing the same functionality from scratch.
  • It has 2473 lines of code, 318 functions and 26 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
PdfLayoutManager Reuse
Best in #Grid
Average in #Grid
PdfLayoutManager Reuse
Best in #Grid
Average in #Grid
Top functions reviewed by kandi - BETA

kandi has reviewed PdfLayoutManager and discovered the below as its top functions. This is intended to give you an instant insight into PdfLayoutManager implemented functionality, and help decide if they suit your requirements.

  • Renders the cell contents .
    • Draw a line .
      • Converts a string to a Windows ANSI ASCII string .
        • Adds a cell to the row .
          • Removes leading whitespace from a string starting at the given index .
            • Compares this PdfItem with the specified order .
              • Calculates the string width for a given text .
                • Returns the maximum X position of two coordinates .
                  • Returns a new Dim with the specified Dim .
                    • Add cell widths .

                      Get all kandi verified functions for this library.

                      Get all kandi verified functions for this library.

                      PdfLayoutManager Key Features

                      Bumped dependencies

                      2019-01-28 Version 0.5.2

                      copy iconCopydownload iconDownload
                      YOU MUST MANUALLY ACCEPT EACH CHANGE!
                      Colors still use floats, hexidecimal numbers can end in f, and your code may use floats for other reasons!
                      
                      Replace Regex fix float literals with a decimal point:
                      ([0-9]+)[.]([0-9]+)f
                      $1.$2
                      
                      Replace Regex to fix any float literals without a decimal point:
                      ([0-9]+)f
                      $1.0
                      OR (if you don't have any float varargs or float array creation)
                      $1
                      
                      Replace Words:
                      Float
                      Double

                      I want to build a PDF doc, using Glen K. Peterson's Pdf Layout Manager, but I'm stuck at building a table

                      copy iconCopydownload iconDownload
                      TableBuilder tabel = new TableBuilder(locatieTabel, coordinate); // Getting the error at this point
                      
                          private TableBuilder(LogicalPage lp, Coord tl) {
                              logicalPage = lp; topLeft = tl;
                          }
                      
                          public static TableBuilder of(LogicalPage lp, Coord tl) {
                              return new TableBuilder(lp, tl);
                          }
                      
                      TableBuilder tabel = TableBuilder.of(locatieTabel, coordinate);
                      
                      TableBuilder tabel = new TableBuilder(locatieTabel, coordinate); // Getting the error at this point
                      
                          private TableBuilder(LogicalPage lp, Coord tl) {
                              logicalPage = lp; topLeft = tl;
                          }
                      
                          public static TableBuilder of(LogicalPage lp, Coord tl) {
                              return new TableBuilder(lp, tl);
                          }
                      
                      TableBuilder tabel = TableBuilder.of(locatieTabel, coordinate);
                      
                      TableBuilder tabel = new TableBuilder(locatieTabel, coordinate); // Getting the error at this point
                      
                          private TableBuilder(LogicalPage lp, Coord tl) {
                              logicalPage = lp; topLeft = tl;
                          }
                      
                          public static TableBuilder of(LogicalPage lp, Coord tl) {
                              return new TableBuilder(lp, tl);
                          }
                      
                      TableBuilder tabel = TableBuilder.of(locatieTabel, coordinate);
                      
                      TableBuilder tabel = new TableBuilder(locatieTabel, coordinate); // Getting the error at this point
                      
                          private TableBuilder(LogicalPage lp, Coord tl) {
                              logicalPage = lp; topLeft = tl;
                          }
                      
                          public static TableBuilder of(LogicalPage lp, Coord tl) {
                              return new TableBuilder(lp, tl);
                          }
                      
                      TableBuilder tabel = TableBuilder.of(locatieTabel, coordinate);
                      

                      Community Discussions

                      Trending Discussions on PdfLayoutManager
                      • I want to build a PDF doc, using Glen K. Peterson's Pdf Layout Manager, but I'm stuck at building a table
                      Trending Discussions on PdfLayoutManager

                      QUESTION

                      I want to build a PDF doc, using Glen K. Peterson's Pdf Layout Manager, but I'm stuck at building a table

                      Asked 2021-Jan-29 at 11:41

                      I've decided to use Glen K Peterson's Pdf Layout Manager available on GitHub(https://github.com/GlenKPeterson/PdfLayoutManager) to generate PDF documents with my app, I've imported the source files and the pom.xml dependencies and everything, it's working just fine. The problem is, I'm trying to build a table in one of the documents I want to generate with a button click. I have no idea how to extract(use) the TableBuilder, as I'm getting the error message inside my JDeveloper IDE, that the class has private access.

                      Here's my code:

                      private void jBtnSalvareVerMetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnSalvareVerMetActionPerformed
                          // TODO add your handling code here:
                          PDDocument document = new PDDocument();
                          try {
                              PDPage page = new PDPage();
                              document.addPage(page);
                              PDFont font = PDType1Font.COURIER;
                              PDPageContentStream contents = new PDPageContentStream(document, page);
                              contents.beginText();
                              contents.setFont(font, 14);
                              contents.newLineAtOffset(50, 500);
                              Coord coordinate = new Coord(10, 700);
                              PdfLayoutMgr pageMgr = PdfLayoutMgr.newRgbPageMgr();
                              LogicalPage locatieTabel = pageMgr.logicalPageStart();
                              TableBuilder tabel = new TableBuilder(locatieTabel, coordinate); // Getting the error at this point
                              contents.newLineAtOffset(10, 700);
                              contents.showText(tabel.toString());
                              contents.endText();
                              contents.close();
                          } catch (IOException ex) {
                              java.util.logging.Logger.getLogger(MeniuTaburi.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
                          } finally {
                              try {
                                  document.close();
                              } catch (IOException ex) {
                                  java.util.logging.Logger.getLogger(MeniuTaburi.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
                              }
                          }
                          jLabelAverstismenteVerMet.setText("<html><center>Datele au fost salvate cu succes!</center></html>");
                      }//GEN-LAST:event_jBtnSalvareVerMetActionPerformed
                      

                      I thought of changing the type of access permission from private to public, for the TableBuilder, but I don't think, that's the way it's actually supposed to work... Is there any other way, I can build the table I need, without resorting to changing the access modifier, inside the TableBuilder class??

                      ANSWER

                      Answered 2021-Jan-22 at 16:51

                      You try to use

                      TableBuilder tabel = new TableBuilder(locatieTabel, coordinate); // Getting the error at this point
                      

                      But that constructor is private

                          private TableBuilder(LogicalPage lp, Coord tl) {
                              logicalPage = lp; topLeft = tl;
                          }
                      

                      I.e. you are not meant to use it. Unfortunately there also is no JavaDoc indicating what you should use instead. But looking at the TableBuilder source a bit beyond that constructor, you'll find immediately following this:

                          public static TableBuilder of(LogicalPage lp, Coord tl) {
                              return new TableBuilder(lp, tl);
                          }
                      

                      Thus, instead of your direct constructor call you should use this factory method:

                      TableBuilder tabel = TableBuilder.of(locatieTabel, coordinate);
                      

                      Source https://stackoverflow.com/questions/65847118

                      Community Discussions, Code Snippets contain sources that include Stack Exchange Network

                      Vulnerabilities

                      No vulnerabilities reported

                      Install PdfLayoutManager

                      You can download it from GitHub, Maven.
                      You can use PdfLayoutManager like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the PdfLayoutManager component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

                      Support

                      For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

                      DOWNLOAD this Library from

                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      Explore Related Topics

                      Share this Page

                      share link
                      Consider Popular Grid Libraries
                      Try Top Libraries by GlenKPeterson
                      Compare Grid Libraries with Highest Support
                      Compare Grid Libraries with Highest Quality
                      Compare Grid Libraries with Highest Security
                      Compare Grid Libraries with Permissive License
                      Compare Grid Libraries with Highest Reuse
                      Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from
                      over 430 million Knowledge Items
                      Find more libraries
                      Reuse Solution Kits and Libraries Curated by Popular Use Cases
                      Explore Kits

                      Save this library and start creating your kit

                      • © 2022 Open Weaver Inc.