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

Method and device for converting Markdown document into PDF document

A document conversion and document technology, which is applied in the fields of instruments, electrical digital data processing, computing, etc., can solve the problems of cumbersome conversion process and low conversion efficiency.

Pending Publication Date: 2020-03-10
ZHUHAI KINGSOFT OFFICE SOFTWARE +2
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to convert a Markdown document into a PDF document, it is necessary to convert the Markdown document into an HTML document or a Word document first, and then convert the HTML document or Word document into a PDF document. The conversion process is cumbersome and the conversion efficiency is low.

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 and device for converting Markdown document into PDF document
  • Method and device for converting Markdown document into PDF document
  • Method and device for converting Markdown document into PDF document

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] In order to simplify the process of converting Markdown documents into PDF documents and improve conversion efficiency, the embodiment of the present invention provides a method, device and electronic equipment for converting Markdown documents into PDF documents. The embodiments are described, and it should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0052] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention.

[0053] In one embodiment of the present invention, a method for converting a Markdown document into a PDF document is provided, such as figure 1 As...

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 embodiment of the invention provides a method for converting a Markdown document into a PDF document. When a Markdown document needs to be converted into a PDF document, the Markdown document is converted into a PDF document; obtaining documents to be converted, wherein the document to be converted is a Markdown document; extracting the to-be-converted document from the to-be-converted document; extracting document content units, and grammar description information of each document content unit, wherein one document content unit is a group of document contents with the same grammar description information; wherein the grammar description information of one document content unit is used for representing the display format of the document content unit; and for each document content unit,extracting the document content, according to the display format represented by the grammar description information of the document content unit, the document content unit is displayed; converting the document content unit into the content in the display format; according to the method, the document content units are extracted from the to-be-converted document to obtain the conversion content ofthe document content units, and the conversion content of each document content unit extracted from the to-be-converted document is written into the blank PDF document to obtain the converted PDF document, so that the process of converting the Markdown document into the PDF document is simplified, and the conversion efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of document processing, in particular to a method, device and electronic equipment for converting a Markdown document into a PDF document. Background technique [0002] Markdown is currently the most popular writing language on the Internet. It uses some simple symbols to mark the text format. It is very popular because of its concise syntax, format and powerful software support. [0003] The PDF (Portable Document Format, Portable Document Format) document is an electronic file format, no matter it is common in Windows operating system, Unix operating system or Mac OS operating system. This feature makes PDF an ideal document format for electronic document distribution and digital information dissemination on the Internet. More and more e-books, product descriptions, company announcements, network materials, and e-mails are beginning to use PDF format files. [0004] In order to convert a Markdown documen...

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/103
Inventor 邓斌
Owner ZHUHAI KINGSOFT OFFICE SOFTWARE