yangshp / PDF-DWG-Converter

A project to convert multi-page or a directory of PDFs to DWGs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF-DWG-Converter

A project to convert multi-page or a directory of PDFs to DWGs.

Project Overview

At Con Edison, there were many times where they received PDF drawings from contractors, that need to be converted to DWGs to work on them. Asking the contractor for DWG version was often a tedious process, and AutoCAD does not support batch conversion. AutoCAD only supports single-page conversions. To manually convert 1000s of PDFs or a multi-page PDF, would in itself be a full time job. The project was to create a program to do this using VBA and AutoCAD API. I created a tool where the user would specify a file or a directory of files they would like to process. The program will copy the file or the directory to the server, convert them, save the files as their original name with a page suffix (indicating the page it was in the PDF), send an email to the user saying the files have been converted with a link to the files/directory. After the PDFs have been converted, the files will be deleted after 7 days as set by the admin to avoid overloading the server. The challenge was that it had to be a tool that anyone can access, without having to download on their machine due to the limitations set by Con Edison, where only an admin can download any executables. The solution was to place this program and processed in the background on a server, having a File Listener. The File Listener would listen for any directories added in a certain location, and it will begin the process notifying the user when it is complete.

Project Goals

  • Fully designed and implemented by me.
  • Weekly meetings with manager showing progress for the week.
  • Obtaining admin approval to create the executable.
  • Obtaining a server to run the program on.
  • Obtaining a no-reply email to be used to let user track progress.
  • Have the ability to convert PDFs-to-DWGs.
  • Making it as convenient and as quick as possible for the user.
  • Client Side:
    • User will specify the file/directory they would like to process.
    • The program can convert a multi-page PDF file.
    • The program can convert a directory of single-page PDFs.
    • The program can convert a directory of multi-page PDFs.
    • The file/directory will be copied to the server for processing.
    • No additional downloads for the user.
    • The user will receive an email with a link to the processed files.
  • Server Side:
    • There is a File Listener, watching for a new directory.
    • When it sees a new directory, it will open a process of AutoCAD with an Embedded Drawing.
    • The PDFs will be converted and stored on the server as DWGs.
    • An email will be sent to the user with a link to the files.
    • The files will be deleted after 7 days as specified by the admin.

Gallery

How it Works!
Watch the video

Skills Used

  • Software:

    • Visual Studio
    • AutoCAD
    • AutoCAD API
    • iTextSharp
  • Languages:

    • VBA
    • C#

About

A project to convert multi-page or a directory of PDFs to DWGs.


Languages

Language:Visual Basic .NET 71.0%Language:C# 29.0%Language:Smalltalk 0.0%