Method and system for converting OFD file into picture based on Java
The invention discloses a method and system for converting an OFD file into a picture based on Java, and belongs to the technical field of data processing. The method comprises the following steps: decompressing a package of the electronic invoice OFD file to obtain decompression information of the...
Gespeichert in:
Hauptverfasser: | , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method and system for converting an OFD file into a picture based on Java, and belongs to the technical field of data processing. The method comprises the following steps: decompressing a package of the electronic invoice OFD file to obtain decompression information of the electronic invoice OFD file; analyzing the document directory structure and the file content of the electronic invoice OFD file according to a preset rule to obtain an OFD layout file of the electronic invoice, and determining conversion information according to the OFD layout file; drawing a Page page in the electronic invoice OFD file page by page according to the conversion information, and determining a layer; according to the resolution of the target picture, converting coordinates of to-be-drawn primitive objects in the electronic invoice OFD file into pixel coordinates of a Java drawing, and sequentially drawing the to-be-drawn primitive objects into a layer according to the pixel coordinates; after the laye |
---|