pjl | A JetDirect/PJL Library for Java | 3D Printing library

 by   lump Java Version: Current License: Non-SPDX

kandi X-RAY | pjl Summary

kandi X-RAY | pjl Summary

pjl is a Java library typically used in Modeling, 3D Printing applications. pjl has no bugs, it has no vulnerabilities and it has low support. However pjl build file is not available and it has a Non-SPDX License. You can download it from GitHub.

this is a little library for talking pjl to hp jetdirect printers. it may be used to talk pjl to other printers that understand pjl, but i have never tested that, nor do i have a need to. you may ask, why would anyone want to talk directly to a printer?. being able to talk directly to the printer allows you to micromanage job progress. this is important in applications where each paper printed is highly valuable and duplicates or lack of printing could be problematic. for example, i have used it for a (proprietary) check printing system, and i am able to tell when each newly printed check rolls out onto the top bin. being able to tell when this happens allows me to mark it
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              pjl has a low active ecosystem.
              It has 4 star(s) with 5 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 2 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of pjl is current.

            kandi-Quality Quality

              pjl has 0 bugs and 0 code smells.

            kandi-Security Security

              pjl has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              pjl code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              pjl has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              pjl releases are not available. You will need to build from source code and install.
              pjl has no build file. You will be need to create the build yourself to build the component from source.
              It has 3396 lines of code, 260 functions and 47 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed pjl and discovered the below as its top functions. This is intended to give you an instant insight into pjl implemented functionality, and help decide if they suit your requirements.
            • Reads the input
            • Compares this variable to another
            • Joins a character with a character
            • Join the variables with the given character
            • Entry point for debugging
            • Prints the stats about the stats
            • Generates a table containing the alert OID
            • Returns the query stats for this SNMPP
            • Reads variables from a file
            • Fires an input event
            • Copy an object
            • Checks if the given value is a valid value
            • Checks that the given value is a valid valid value
            • Returns the command as a string
            • Sets the password
            • Returns a string representation of this command
            • Reads an input string
            • Read variables from a string
            • Creates a deep copy of this variable
            • Returns a vector containing all UStatus objects that should be sent to the printer
            • Read the input
            • Returns a hashCode of this object
            • Read variables from a BufferedInputStream
            • Returns a string representation of the command
            • Join all categories with the given character
            Get all kandi verified functions for this library.

            pjl Key Features

            No Key Features are available at this moment for pjl.

            pjl Examples and Code Snippets

            No Code Snippets are available at this moment for pjl.

            Community Discussions

            QUESTION

            Using Java to send PJL commands to HP 4515 Printer
            Asked 2019-Apr-21 at 05:08

            I am trying to send Printer Job Language commands to a HP 4515 printer. However, the printer does not print anything. Below is my code. The printer is located remotely and I can only ask someone there to check if anything is printed out. Unfortunately nothing was printed out. Are the PJL commands not in good format? How can I get the job status using Java & PJL?

            ...

            ANSWER

            Answered 2019-Apr-21 at 05:08

            As noted here, it looks like you are missing the closing 'Universal Exit Language' command (UEL). It is required in PJL. It defines beginning and end of any PJL-based data stream.

            E.g.:

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

            QUESTION

            PostScript won't staple two pages together on Konica Minolta
            Asked 2018-Sep-19 at 12:02

            I'm trying to send a simple PostScript to a Konica Minolta C364 printer which has a finisher for stapling. I'm able to print a couple of pages and staple them if I do this by printing let's say, a PDF file directly and selecting the appropriate settings from the printing user interface. However, I'm not able to do the same via PostScript commands.

            I've tried numerous different commands, adding them both in the beginning and the end of the .ps file, starting from the simple one:

            ...

            ANSWER

            Answered 2018-Sep-19 at 12:02

            Device-dependent actions (like Staple, and also Duplex, Tumble, Collate etc) are expected to be controlled, in language level 2 or 3, by calling setpagedevice.

            Some device-dependent features (eg Duplex) are well defined in the specification, others are less well defined and manufacturers can create key/value pairs of their own, which are totally undefined. The way the setpagedevice operator works it will ignore anything which it doesn't understand.

            So I would expect:

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

            QUESTION

            Set page scaling in PJL
            Asked 2018-Apr-30 at 07:22

            I have to write a functionality that takes a PDF-document and sends it to a printer with some PJL commands. So far so good, I take the document, convert it to Postscript, send the postscript file to the printer with the required commands and the printer prints the document.

            Now to the actual problem: Most of the document that needs to be printed by our software are invoices, therefore they are carefully made, such that every element is precisely positioned, and if it's off by millimeters the printed document is invalid. When printing the document directly through Adobe or any pdf viewing software, I can select the actual size option and everything is fine. Although if I print it via C# and PJL the document has different margins depending on the printer it has been printed on. Until now we used pdfprinting.net, and that option could be selected through pdfPrint.Scale = PdfPrint.ScaleTypes.None, but how can I do it via PJL?

            ...

            ANSWER

            Answered 2018-Apr-30 at 07:22

            Checking the PJL Reference Manual (Edition 12, which is the latest I have seen) there is simply no way to scale the page content in PJL.

            Even if there were, I'd be surprised if it carried over to the PostScript (as opposed to PCL) interpreter environment, because PostScript has a rich feature set to handle this sort of setup. So basically you're going to need to get the PostScript correct.

            Now, when you take a PDF file and produce PostScript from it, you are almost certainly producing generic PostScript; its device-neutral so it doesn't take account of aspects of the physical device.

            Most obviously this will be things like hardware margins and unprintable areas. Many devices have limitations on which parts of the media they can print on, due to the paper handling. These will, of course, be different between different printers.

            Of course, when you print from the operating system, the printer device driver knows what the printable area of the media is (because its the specific driver for the printer in question), and so it can arrange for the content to be scaled to the actual media.

            Ghostscript certainly can produce PostScript (using the ps2write device) which is suitably scaled and translated for a given printer, provided you know what the characteristics of that printer are. In fact if the printer is sophisticated enough, the PostScript program may be able to interrogate the printer to retrieve some of these characteristics (ImagingBBox, PageOffset, Margins, ImageShift) and its then possible to write a PostScript program to dynamically resize the content of the page, based on these values (the PostScript produced by ps2write does not do this...).

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

            QUESTION

            Stacked Barplot of a Dataframe in R (colors for categories, not counts)
            Asked 2018-Apr-17 at 03:51

            This should not be so complicated! The question of plotting a dataframe in R seems to get asked over and over, but not a single solution works for me. I'm trying to create a simple stacked barplot from this dataframe:

            ...

            ANSWER

            Answered 2018-Apr-17 at 03:51

            Can I suggest a different approach, based on two observations:

            • there are far too many categories (48 tissues) to distinguish by fill colour
            • stacking suggests that each tissue as a proportion of the total has some relevance, which I doubt in this case given the very different tissues

            So how about plotting tissue against variable (population I assume) and colouring the tiles by value. I use df1 for the data frame name.

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

            QUESTION

            SocketException: sendto failed: EBADF (Bad file descriptor)
            Asked 2017-Dec-29 at 01:42

            I try to send data by Socket from Android phone. I send pdf file to printer for printing. In Java it work correctly, but Kotlin throws SocketException: sendto failed: EBADF (Bad file descriptor), but with Kotlin code, printer whatever printing.

            Full stackTrace:

            ...

            ANSWER

            Answered 2017-Dec-29 at 01:42

            I solved my problem. For writing data to OutputStream in Kotlin, I used:

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

            QUESTION

            awk command fails with command substitution
            Asked 2017-Jul-05 at 17:12

            Running this command fails:

            ...

            ANSWER

            Answered 2017-Jul-05 at 16:17

            Try removing the quotes from the command being generated.

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

            QUESTION

            'infinispan-core' not showing logs
            Asked 2017-Apr-20 at 14:19

            I'm using log4j (1.2.17)

            'infinispan-embedded' does work with my logs.

            But when I change to work with: 'infinispan-core' I don't recive any logs from Infinispan.

            • I have Spring(4.1.4) & Hibernate(4.2.21)
            • Infinispan version - 8.2.6.Final

            Any ideas?

            Thanks.

            my dependecy:tree is:

            ...

            ANSWER

            Answered 2017-Apr-13 at 05:20

            I've been through similar situations before. The problem here is most likely that there's a dependency missing when using infinispan-core.

            The way to address such issues is by step-debugging through the code to understand why the logger is not being found. You can do that by putting a breakpoint at the start of org.jboss.logging.LoggerProviders.findProvider() method. That method detects which logger will be used, whether JDK, Log4j, Log4j2, Slf4j...etc.

            So, put back the embedded dependency, put a breakpoint in that method, and verify that Log4j 1.x is added. Then, try running the same with infinispan-core in place and see what provider gets chosen (I guess it's not Log4j 1.x). Then see if adding Log4j 1.x as explicit dependency works...etc :)

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

            QUESTION

            How to programmatically achieve editing of the spool file header of the normal windows print queue 'spool file' before it is sent to the printer?
            Asked 2017-Mar-01 at 23:41

            How to intercept and change the windows 7 print spool file (.SPL) to add some additional information in the header like '@PJL SET NAME="PainPoint" ' before this file is sent to the printer during the execution of the print job?

            The .SPL file partial extract from top is :

            ...

            ANSWER

            Answered 2017-Mar-01 at 23:41

            Editing the spool file is obviously trivial. The trick is how to get access to the spool file.

            I can think of a few ways offhand:

            1. Pause the print job after spooling, edit it, then release it. See my answer here. This is not trivial and you may need to resort to third-party software depending on time/effort available.
            2. Create a print driver or spooler component such as a port or language monitor to edit the file. (Thanks to Carey Gregory for the suggestion to use a language monitor). This is a big topic and you'll have to read a lot of documentation to figure out how to do it, but there is a sample (Pjlmon) in the WDK. Note that the newer V4 driver model for Windows 8/Server 2012 doesn't support these components.
            3. If you don't need to do this transparently you could set up RedMon (free) to call your app to edit the spool file. RedMon will then send it to the desired printer.

            4. VeryPDF has some similar commercial products with more capabilities.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install pjl

            You can download it from GitHub.
            You can use pjl 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 pjl 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 .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/lump/pjl.git

          • CLI

            gh repo clone lump/pjl

          • sshUrl

            git@github.com:lump/pjl.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular 3D Printing Libraries

            OctoPrint

            by OctoPrint

            openscad

            by openscad

            PRNet

            by YadiraF

            PrusaSlicer

            by prusa3d

            openMVG

            by openMVG

            Try Top Libraries by lump

            ircl

            by lumpJava

            envelope

            by lumpJava