[go: up one dir, main page]

Menu

Is page orientation supported by OpenPCL?

Developers
2009-01-24
2013-04-23
  • Stefano Chieffo

    Stefano Chieffo - 2009-01-24

    As a premise, I'm very pleased to discover OpenPCL library, it could be very helpful in development of the java application, which consists of a Logistic System needing a simple PCL viewer for Invoices and other Print documents (since the docs are printed on pre-formatted paper, there's no real need to include images or complex graphics).

    However, I've done some tests and looks like OpenPCL not supporting Landscape page orientation and A4 size (most of the print docs in my app are landscape and A4 size). In fact, all prints are cut and this is not acceptable for the final users of the application.

    I've looked at the code of PCLRenderImage and there's a // TODO Page orientation Portrait or Landscape in the processMiscLCommand method.

    Is there a workaround to resolve this problem? Is it planned to add this feature to the viewer? I've quickly looked at the design of OpenPCL but seems that adding this feature could be a bit complex, could confirm?

    Thanks in advance,

    Stefano

     
    • JimG3216

      JimG3216 - 2009-01-27

      Stefano,

      Currently,  landscape and A4 are not supported.

      Some pcl commands are more involved than others to implement.  Off the top of my head, I don't think these two would be difficult to implement.  Landscape should only need to swap the width and length values of the pages and the A4 would only need to know the number of dots for width and length for the returned image.

      I'd encourage you to add these and we'd be happy to include them in this effort as several people have also requested these features.

      Thank you for your interest.

      JimG

       

Log in to post a comment.