Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for converting RTF into HTML and achieving effect in PDF file

A file and text technology, applied in the field of converting RTF to HTML and realizing effects in PDF files, can solve problems such as decreased development efficiency, HTML does not conform to specifications, and cannot be parsed at the same time.

Pending Publication Date: 2021-11-30
四川启睿克科技有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The specific defect is that the rtf rich text content is manually copied, so that only the content is obtained without style; or the rtf rich text is converted to html format with an open source plug-in, but the converted html does not conform to the specification, such as tags are not closed in pairs, tags are used cross-used, etc. in html When converting pdf to display, the pdf conversion framework itext cannot recognize some html tags. Currently, the freemarker method is used, and background developers need to master front-end development technology, resulting in a decline in development efficiency and increased complexity in template deployment and migration
[0005] At the same time, many platforms cannot parse the rich text in the previous rtf format and html format to generate pdf files at the same time, making the platform unable to directly use the previous rich text in the historical rtf format, resulting in poor platform compatibility

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for converting RTF into HTML and achieving effect in PDF file
  • Method for converting RTF into HTML and achieving effect in PDF file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other implementations obtained by persons of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.

[0023] Table 1 Partial generation pdf technology advantages and disadvantages comparison table

[0024]

[0025] In either embodiment, if figure 1 Shown, a kind of RTF of the present invention turns HTML and the method for realizing effect in PDF file, comprises:

[0026] Step 1, the system reads the rich text in rtf format, and converts the rich text in rtf format into rich text in html format with open source code such as RTF2HTML.

[0027] Step 2, the r...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for converting RTF into HTML and achieving an effect in a PDF file. A pdf conversion framework adopts an itext technical route, an rtf rich text format adopts a conversion html format, and standardization is carried out, that is, labels are paired, and the labels which are used in a cross mode are nested and sorted again according to a tree structure; then the labels of the rich text in the html format are converted, and are replaced with a label or method which can be identified by the text of the pdf conversion framework; and finally the pdf file capable of displaying the rich text style is generated.

Description

technical field [0001] The invention relates to the technical field of PDF display rich text effects, in particular to a method for converting RTF to HTML and realizing effects in PDF files. Background technique [0002] RTF format (Rich Text Format, Rich Text Format, RTF format, also known as multi-text format, is a cross-platform document format developed by Microsoft. Most Microsoft word processing software can read and save RTF documents) and html Format compatibility, while meeting the requirements of html tags when converting pdf, and background developers do not need to master front-end technology, template maintenance and other work, reducing the complexity of deployment. [0003] At present, the printing of many systems is the printing of pdf files, and the editing of file content is mostly through the rich text editor of the cloud platform. How to display the effect of rich text design in pdf files, the mainstream method is to use the freemarker template engine. T...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F40/166G06F40/154G06F40/14G06F16/84
CPCG06F40/166G06F40/154G06F40/14G06F16/84
Inventor 刘剑飞
Owner 四川启睿克科技有限公司