HPG Viewer: Open an HPG File in the Browser with Ruby

An HPG file holds HP Graphics Language, the instruction set a pen plotter follows to draw a technical illustration. Drafting and CAD programs export it when the drawing is destined for a plotter, and the content is a sequence of movement and drawing commands rather than a picture.

GroupDocs.Viewer Cloud turns those instructions into output a browser can display. HTML suits an embedded view inside a page, PDF suits passing the drawing onward, and JPG or PNG suit a flat picture, so a recipient without drafting software still sees the illustration.

Zoom, page navigation and thumbnail strips accompany the rendered result, which is what a large drawing needs when it has to be inspected region by region. A password protected file opens when the password accompanies the request, and over 180 formats are handled by the same operation.

Ruby code sends the request through the SDK and shows the returned pages, which keeps document viewing inside the application instead of in a separate program. When only one drawing has to be opened, the free online viewer app does that in a browser with nothing installed.


  • View HPG Online via PHP
  • View HPG Online via Node.js
  • View HPG Online via Go
  • View HPG Online via Android
  • View HPG Online via .NET
  • View HPG Online via Python
  • View HPG Online via cURL
  • View HPG Online via Java

HPG Viewer: Open an HPG File in the Browser with Ruby

View HPG and other Popular Formats for Free

PPTXEMLXDGNDJVUMPPDCMJPMTIFFEPSBATDWFVDWCDRVSDXCHMMBOXAISTLDOTMFODGODSDXFLOGJPFPSBPPTPROPERTIESDOCXHAMLDOCASMSXCJ2KVSDSASSMHTXLSBPSDHTMLDWGOTPVSTMVSTJP2SQLJPGERBXMLTSVPSTCSVMDODGMPTNUMBERSOSTTGAPOTXNSFRSTEMLTARDIBGZIPEMFPPSIGSVDXVSSXTXTDWTODTPLCMXEMZPOTJ2CWMFXPSRARSVGVCFAS3CXXMHTMLGROOVYJSONCPPPNGBZ2

How to view HPG file online

  • Select the file by clicking the HPG App or simply drag & drop a HPG file.
  • Click the Open button to upload and view HPG file.
  • That is all! You can view your HPG document online.

Frequently Asked Questions

I want to create my own app that can view HPG file online?

Check our Cloud SDKs at GitHub if you are looking for the source code to view HPG file format in the Cloud.

How can I render Word, Excel, or PDF documents in a .NET application using GroupDocs.Viewer Cloud?

To render files like Word, Excel or PDF in a .NET app using GroupDocs.Viewer Cloud, you simply upload your document to the cloud and call the “ViewDocument” API method. You can retrieve the document as HTML, PDF, or image previews using the official .NET SDK.

Is there a limit on the number of document views I can generate using GroupDocs.Viewer Cloud APIs?

GroupDocs.Viewer Cloud APIs offer flexible limits on the number of document views based on your subscription plan. Contact GroupDocs support for more details on view limits.

How secure is the document viewing process in GroupDocs.Viewer Cloud?

GroupDocs.Viewer Cloud ensures a secure document viewing process with data encryption, secure protocols, and adherence to data protection standards.

What features does GroupDocs.Viewer Cloud offer?

GroupDocs.Viewer Cloud provides various features, such as zooming, paging, searching within documents, text selection, and rendering options. You can render specific pages, generate document thumbnails, or even render documents as images.

Are there any limitations or usage restrictions with GroupDocs.Viewer Cloud?

GroupDocs.Viewer Cloud has certain usage limits depending on the subscription plan you choose. These limits may include the number of API requests, document size, or the number of concurrent connections. Its recommended to review the pricing and plans to understand the specific limitations.

How can I integrate GroupDocs.Viewer Cloud into my application?

Integration is done through APIs provided by GroupDocs.Viewer Cloud. The service offers APIs for different programming languages and platforms, making it convenient for developers to incorporate document viewing capabilities into their applications or websites.

What file formats are supported by GroupDocs.Viewer Cloud APIs?

GroupDocs.Viewer Cloud APIs support a wide range of file formats including PDF, Word, Excel, and more.

Are there SDKs available for GroupDocs.Viewer Cloud APIs?

Yes, GroupDocs provides SDKs for various programming languages to simplify the integration and utilization of Viewer Cloud APIs in your applications.

What document formats does GroupDocs.Viewer Cloud support?

GroupDocs.Viewer Cloud supports a wide range of document formats, including PDF, Microsoft Word (DOC, DOCX), Excel (XLS, XLSX), PowerPoint (PPT, PPTX), images (JPEG, PNG, GIF, TIFF), and more.

What is an HPG file?

It is a plotter file written in HP Graphics Language. Instead of pixels it stores commands, such as move to a coordinate, lower the pen and draw a line, which together describe a technical drawing at full precision.

Do I need CAD or plotter software to view an HPG file?

No. The rendering runs on the server, and the output can be PNG, JPG, PDF or HTML, every one of which a browser displays. Nothing has to be installed on the machine of the person who looks at the drawing.

Can the drawing be zoomed and paged?

Yes. The viewer provides zoom, page navigation and thumbnails, so a detailed drawing can be enlarged in one area while the thumbnails keep the position in the whole document visible. A single page can also be requested on its own.

PLT (HPGL) (HPG) Viewer REST API

HPG REST APIs are secured and require authentication

View HPG and hundreds of other formats from CAD, Word, PowerPoint, Excel, Email & eBook

View HPG with its attachments

View HPG as HTML5

Render HPG files using a single API call

Rotate, reorder & watermark HPG pages

View HPG as Images like BMP, PNG, JPEG & TIFF

View HPG as PDF

Get HPG document information like page & attachment count as well as properties

Text selection

Users can select, copy, and paste text directly from documents, making it easy to extract and use information from the content.

Extract document text while rendering in image mode

Our API allows extract text from documents

Free Alternative to Desktop & Mobile HPG Viewer Apps

GroupDocs.Viewer Cloud app does not need any installation or setup to view HPG. You can quickly start using the Viewer App in your browser to view any number of files per day absolutely free of charge.

Wide range of document format support

GroupDocs.Viewer Cloud APIs and FREE Apps support a variety of document formats including PDF, Microsoft Office (Word, Excel, PowerPoint), AutoCAD, image files (PNG, JPEG), and more.

Show or hide document headers and footers

GroupDocs.Viewer Cloud APIs supports rendering of headers and footers.

Printing support

Users can print documents directly from the viewer, enabling them to easily generate physical copies of the document content if needed.

Integration capabilities

Developers can easily integrate the Viewer Cloud APIs into their applications to enable users to view documents directly within the application interface without the need to download them.

Zooming functionality

The Viewer Cloud APIs provide zooming capabilities, allowing users to zoom in and out of document pages to view content in more detail or from a broader perspective.

Free Apps availability

Users can access and utilize FREE Apps for document viewing and annotation online, providing a convenient and cost-effective solution for accessing and interacting with document content.

Programmatically get list of supported file types.

Use our REST API to get list of 186 supported document types.

Free Apps support show or hide document comments

API Allows to view and comments embedded inside supported documents types.

Free online HPG viewer supports over 186 file formats

The cloud-based viewer API for HPG has the ability to display different document formats quickly, with just a few lines of code. Using the SDK for Ruby you can find out about the various document formats supported by the SDK.

GroupDocs.Viewer Cloud REST API Explorer

The easiest way to try out GroupDocs.Conversion Cloud API right away in your browser is by using GroupDocs Cloud Web API explorer, which is a collection of Swagger documentation for the GroupDocs Cloud APIs.It allows you to effortlessly interact and try out every single operation our APIs exposes.

Minify HPG Output Content

One of the most exciting features of our Cloud-based viewer API for HPG is its ability to minify the output content. Minification removes comments, extra white-spaces, and other unneeded characters without breaking the content structure. As a result, the page becomes smaller in size and loads faster.

Online document viewing

Users can view documents online without the hassle of downloading them first, providing a convenient and efficient way to access and interact with document content.

Self-host HPG Cloud Viewer Free App

The GroupDocs.Viewer Cloud Container Image enables users to self-host GroupDocs.Viewer Cloud for HPG using Docker.

Page navigation

The APIs offer intuitive page navigation features that allow users to navigate through document pages easily and efficiently.

Render HPG files to remote FTP or Cloud storage

Use third-party cloud storage to save your HPG rendered files.

  • Amazon S3
  • Azure Storage
  • Google Cloud Storage
  • Google Drive
  • Dropbox
  • Box
  • FTP

Flexible Rendering of HPG Documents

GroupDocs.Viewer is a powerful document viewer REST API that allows you to display over 186 document formats in your applications. It allows rendering of HPG for the whole document, page by page or custom range of pages.

Support and Learning Resources

View HPG using SDKs in other popular languages

  English
e2bae8eda