Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Import PDF
Topic Summary:
Created On: 9-May-2007 09:39
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 9-May-2007 09:39
User is offline View Users Profile Print this message


Uma Unnikrishnan

Posts: 32
Joined: 7-Aug-2006

Hi,

   Does any one out here have a working script to import PDFs?

Rgds,
Uma
Report this to a Moderator Report this to a Moderator
 9-May-2007 10:11
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Uma,

please refer to this thread

It was found with search function in this forum

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 9-May-2007 10:58
User is offline View Users Profile Print this message


Uma Unnikrishnan

Posts: 32
Joined: 7-Aug-2006

Hi Reik,

     I did see this thread, the PDF that I have includes a lot of tables and figures and on trying a few converters I was not satisfied with the resultant doc. I also happened to find a few scripts that could in fact import pdf files (in the kitchen scripts that I downloaded from one of the threads in the forum), but they didn't work right :-(. So was wondering if someone out here had a working version of the script.
Report this to a Moderator Report this to a Moderator
 9-May-2007 11:37
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Uma,

I would be very supprised, if there is a possibility to import pdf documnet directly into DOORs.
I think it is sometimes not possible, because pdf allows to contain scanned images.
pdf is afaik a page description language like post script, so it is much complicated to have an import to a database structure?!

If you would have access to the original document, from which the pdf file was created, it would make the problem much easier.

Greetings
Reik

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 10-May-2007 20:48
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

Hi ,

I am also looking for a script for importing pdf documents to DOORS. Presently I convert them to Word, format them and then import to DOORS. For large pdf documents, it is a pain.

- Krishna
Report this to a Moderator Report this to a Moderator
 10-May-2007 21:19
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Anyone have a good PDF -> Word program that doesn't either make it look nothing like the PDF or makes it look exactly like the PDF but uses text boxes to do so?

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 11-May-2007 21:59
User is offline View Users Profile Print this message


Krishna Kandala

Posts: 170
Joined: 8-Jul-2006

I use the built-in Save As function of the Acrobat 7 to save the pdf files to Word. This is reasonably good compared to some other programs I tried.

- Krishna
Report this to a Moderator Report this to a Moderator
 14-May-2007 07:25
User is offline View Users Profile Print this message


Uma Unnikrishnan

Posts: 32
Joined: 7-Aug-2006

Hi Reik,
 
   Yes it would have been gr8 if I could lay my hands on the original document, unfortunately I cannot   .
As for a script, just some wishful thinking at my end, since ot would have made my job easier. I came across the following code in one of the kitchen scripts..needless to say it isn't working

// PDF importer

/*
Try importing a PDF file
*/

/*
Kitchen Tools for customizing DOORS with DXL V5.2
-------------------------------------------------
DISCLAIMER:

This programming tool has been thoroughly checked
and tested at all stages of its production.
Telelogic cannot accept any responsibility for
any loss, disruption or damage to your data or
your computer system that may occur while using
this script.

If you do not accept these conditions, do not use
this customised script.
-------------------------------------------------
*/

Module currMod = current

if ( null currMod )
{
    ack "Please create a module first."
    halt
}

string inFileName = ""

DB  getFileDB   = null
DBE pdfFileName = null

void doGetFile(DB db)
{
    inFileName = get(pdfFileName)
   
    if ( !fileExists_(inFileName) )
    {
        ack "File '" inFileName "' does not exist."
        return
    }
   
    release(db)
}

getFileDB   = create("Import PDF file")
pdfFileName = fileName(getFileDB, "", "*.pdf", "")

apply(getFileDB, "Import", doGetFile)

block(getFileDB)

Stream inFile = read(binary(inFileName))

Regexp hasTitle = regexp "/Title *[(]([^)]*)[)]"

Buffer pdfText = create()

for ( inFile >= pdfText ; !end(inFile) ; inFile >= pdfText )
{
    int i = 0
    while ( search(hasTitle, pdfText, i) )
    {
        Object obj = null
        Object insertPoint = last currMod

        if ( null insertPoint )
        { // create first object in module
            obj = create(currMod)
        } else
        {
            obj = create after insertPoint
        }

        obj."Object Text" = pdfText[i+start(1):i+end(1)]
       
        i += end(1)+1
    }
}


I guess I have to convert it into Word document after all.

Report this to a Moderator Report this to a Moderator
 14-May-2007 07:29
User is offline View Users Profile Print this message


Uma Unnikrishnan

Posts: 32
Joined: 7-Aug-2006

quote:

Originally posted by: Krishna Kandala
I use the built-in Save As function of the Acrobat 7 to save the pdf files to Word. This is reasonably good compared to some other programs I tried. - Krishna


Hmm...I did think of this option and I guess I would have to use this only. My pdf has a few tables n figures which do not seem to show up well even if I saved it in .doc or a .rtf  formats. I guess I would have to work on those. But as you said this seems to be the best alternative for now .

Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.