Method and system for automatically converting PCB (Printed Circuit Board) work manuscript data output into PDF (Portable Document Format) and storage medium

By introducing automated programs and GS software packages in the PCB work draft output process, the working draft is automatically processed and PDF files are output, and the time consumption and error problems caused by manual editing and converting PDFs in the existing technology are solved, achieving efficient and accurate Data output.

CN119474009APending Publication Date: 2025-02-18VICTORY GIANT TECH HUIZHOU CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411362614.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the prior art, the data output of PCB working papers requires manual editing and conversion of PDFs, which leads to high time consumption and error-proneness, affecting work efficiency.

Method used

By introducing automated programs, configuring the GS software package under Genesis software, pre-exporting the work draft, obtaining the size of the Set panel, determining that the panel edge is X or Y direction, adding a hole symbol diagram, and finally outputting the PDF file.

Benefits of technology

Automatic conversion of work papers to PDF is realized, reducing manual operation errors, improving the accuracy and reliability of output files, and significantly improving work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119474009A_ABST
    Figure CN119474009A_ABST
Patent Text Reader

Abstract

The invention provides a method and system for automatically converting PCB work manuscript data output into PDF and a storage medium, and the method comprises the steps: firstly, configuring a gs software package under genesis software; then processing before outputting the work manuscript; obtaining the size of a Set jointed board, judging that the set edge is in the X direction or the Y direction according to the size of the Set jointed board, and adding the inverted corresponding position of the hole symbol graph according to the judgment result; and selecting an output layer name, automatically adding a symbol, and outputting the file in the pdf format to a specified folder. By introducing an automatic program to process customer manuscript and work manuscript PDF data, the working efficiency can be remarkably improved, and errors and cost are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent processing technology, and specifically to a method, system and storage medium for automatically converting PCB working draft data output to PDF. Background Art

[0002] With the development of PCB technology, the requirements and standardization of automation technology have been further strengthened and optimized. In order to meet customer needs and continuously improve technology and services, for D05 series customers, each part number must provide customer original and working draft PDF files, and make a letter of acknowledgment for customer acknowledgment. Currently, there is no automated process, and personnel manually edit and convert PDF files, which takes a lot of time and is prone to errors, affecting work efficiency. Summary of the invention

[0003] To solve the above technical problems, this application provides a method, system and storage medium for automatically converting PCB working draft data output to PDF. By introducing an automated program to process customer originals and working draft PDF data, work efficiency can be significantly improved and errors and costs can be reduced.

[0004] In the first aspect, the present application proposes a method for automatically converting PCB work draft data output to PDF, the method comprising: S1: Configure the GS software package under the Genesis software; perform necessary configurations in the software environment, including setting file paths, layer management, and export options, to ensure that the GS software package can work properly and integrate with the Genesis software.

[0005] S2: Process the work draft before output; S3: Get the size of the Set puzzle, determine whether the set edge is in the X direction or the Y direction according to the size of the Set puzzle, and add the hole symbol to the corresponding position according to the determination result; S4: Select the output layer name, automatically add the symbol, and output the PDF file to the specified folder.

[0006] The present invention can quickly complete the conversion of working draft to PDF through the integration of software packages without manual intervention. Through pre-set parameters and automated processing, it reduces errors that may be introduced by manual operations, such as layer omissions, hole position errors, etc., thereby improving the accuracy and reliability of output files.

[0007] The step S1 comprises: Copy gs to the specified directory; Then copy the ps_merge file, ps_preview file, ps_tile file, and ps2pdf file to another specified directory.

[0008] The step S2 comprises: Get dd layer information from PCB design file; Get the size of the material name string block and the hole symbol block, and create symbols respectively; the definition of Symbol can include size, font, color and placement position; Determine the size of the symbol to ensure that the size of the symbol is consistent with the overall proportion of the design to avoid visual disharmony caused by inappropriate size during output.

[0009] The width and height of the string are obtained using the measurement tool of the design software.

[0010] The dd layer information includes: Part number name, a unique number or name used to identify each component on a circuit board.

[0011] Layer identifier, indicating the function or type of the layer (such as top layer, bottom layer, signal layer, etc.).

[0012] Date, usually the date of design or modification.

[0013] and hole symbol diagrams, which indicate hole locations and related information, to help determine the manufacturing and assembly requirements of the circuit board.

[0014] The effective implementation of step S2 can lay a good foundation for the subsequent process of outputting the working draft to PDF, ensuring that the design information is complete and accurate.

[0015] The step S3 comprises: In PCB design, the size of the panel determines the placement of the hole symbol module. In this application, according to the set size, when the panel is long in the Y direction, the hole symbol module is placed on the right side of the graphic, otherwise when the panel is long in the X direction, the hole symbol module is on the top.

[0016] In the second aspect, the present application proposes a system for automatically converting PCB work draft data output to PDF, the system comprising: Software configuration unit, used to configure the gs software package under the genesis software; The first processing unit is used to respectively create symbols according to the size of the obtained material number name character string block and the size of the hole symbol block; and determine the size of the symbol; The second processing unit is used to determine whether the set edge is in the X direction or the Y direction according to the obtained Set puzzle size, and add the hole symbol to the corresponding position according to the determination result; The output unit outputs the pdf format file to the specified folder according to the specified output layer name.

[0017] In a third aspect, the present application proposes a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a control processor, a method for automatically converting PCB working draft data output to PDF as described in the first aspect is implemented.

[0018] Compared with the prior art, this application has at least the following beneficial effects: This application introduces an automated program to process customer original and working draft PDF materials, reduce manual editing of graphics errors, and improve the yield of materials. Manual production of materials takes 0.5 hours, and automatic output and generation of PDF materials only take 1 minute. The script is completed automatically, reducing human intervention and improving product quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flow chart of a method for automatically converting PCB working draft data output to PDF shown in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. Embodiment 1:

[0021] like Figure 1 As shown, the present application proposes a method for automatically converting PCB work draft data output to PDF, the method comprising: S1: Configure the gs software package under the genesis software; S2: Process the work draft before output; S3: Get the size of the Set puzzle, determine whether the set edge is in the X direction or the Y direction according to the size of the Set puzzle, and add the hole symbol to the corresponding position according to the determination result; S4: Select the output layer name, automatically add the symbol, and output the PDF file to the specified folder.

[0022] The step S1 comprises: Copy gs to the specified directory; Then copy the ps_merge file, ps_preview file, ps_tile file, and ps2pdf file to another specified directory.

[0023] Among them, the ps_merge file is usually used to merge multiple PostScript files. This file may contain a script or tool that can merge multiple separate PostScript files into one for subsequent processing or output.

[0024] The ps_preview file is used to generate a preview of a PostScript file, which can be used to view the layout and content of the file to ensure that there are no errors before final output.

[0025] The ps_tile file is used to process the tiled output of large drawings, including a method for cutting a large PostScript file into multiple small pieces. When the PCB design is large or complex, this tool can help split the design file to meet the output.

[0026] The ps2pdf file is used to convert PostScript files to PDF format. It is a command-line tool that accepts a PostScript file as input and generates a corresponding PDF file.

[0027] The step S2 comprises: Get dd layer information; Get the size of the material name string block and the hole symbol block, and create symbols respectively; Determine the size of the symbol.

[0028] The dd layer information includes: material number name, layer identification, date and hole symbol diagram.

[0029] The step S3 comprises: According to the set size, when the Y direction of the puzzle is long, the hole symbol module is placed on the right side of the figure, otherwise when the puzzle is long in the X direction, the hole symbol module is on the top. That is, get the size of the puzzle in the X and Y directions, usually expressed as set_width and set_height, compare set_height (Y direction length) and set_width (X direction length): If set_height>set_width, the panel is considered longer in the Y direction.

[0030] If set_width ≥ set_height, the panel is considered to be longer in the X direction. Embodiment 2:

[0031] The present application proposes a system for automatically converting PCB work draft data output to PDF, the system comprising: Software configuration unit, used to configure the gs software package under the genesis software; The first processing unit is used to respectively create symbols according to the size of the obtained material number name character string block and the size of the hole symbol block; and determine the size of the symbol; The second processing unit is used to determine whether the set edge is in the X direction or the Y direction according to the obtained Set puzzle board size, and add the hole symbol to the corresponding position according to the determination result; The output unit outputs the pdf format file to the specified folder according to the specified output layer name.

[0032] The system has a clear structure design, and effectively modularizes the steps required to convert PCB design into PDF format. Each unit performs its own duties, ensuring the efficiency and accuracy of the system. Such a system can significantly improve the automation of the design process, reduce human errors, and improve the quality of output files. Embodiment three:

[0033] The present application proposes a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a control processor, a method for automatically converting PCB working draft data output to PDF as described in the first aspect is implemented.

[0034] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved.

[0035] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for an electronic device to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0036] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A method for automatically converting PCB work draft data output to PDF, characterized in that: The method comprises: S1: Configure the gs software package under the genesis software; S2: Process the work draft before output; S3: Get the size of the Set puzzle, determine whether the set edge is in the X direction or the Y direction according to the size of the Set puzzle, and add the hole symbol to the corresponding position according to the determination result; S4: Select the output layer name, automatically add the symbol, and output the PDF file to the specified folder.

2. The method for automatically converting PCB work draft data output to PDF according to claim 1, characterized in that: The step S1 comprises: Copy gs to the specified directory; Then copy the ps_merge file, ps_preview file, ps_tile file, and ps2pdf file to another specified directory.

3. The method for automatically converting PCB work draft data output to PDF according to claim 2, characterized in that: The step S2 comprises: Get dd layer information; Get the size of the material name string block and the hole symbol block, and create symbols respectively; Determine the size of the symbol.

4. The method for automatically converting PCB work draft data output to PDF according to claim 3, characterized in that: The dd layer information includes: material number name, layer identification, date and hole symbol diagram.

5. The method for automatically converting PCB work draft data output to PDF according to claim 4, characterized in that: The step S3 comprises: According to the set size, when the Y direction of the puzzle is long, the hole symbol module is placed on the right side of the figure, otherwise when the puzzle is long in the X direction, the hole symbol module is on the top.

6. A system for automatically converting PCB work draft data output to PDF as described in any one of claims 1-5, characterized in that: The system comprises: Software configuration unit, used to configure the gs software package under the genesis software; The first processing unit is used to respectively create symbols according to the size of the obtained material number name character string block and the size of the hole symbol block; and determine the size of the symbol; The second processing unit is used to determine whether the set edge is in the X direction or the Y direction according to the obtained Set puzzle board size, and add the hole symbol to the corresponding position according to the determination result; The output unit outputs the pdf format file to the specified folder according to the specified output layer name.

7. A computer storage medium, wherein the computer readable storage medium stores computer executable instructions, characterized in that: When the computer executable instructions are executed by the control processor, a method for automatically converting PCB working draft data output to PDF as described in any one of claims 1 to 5 is implemented.