You are viewing limited content. For full access, please sign in.

Question

Question

ImportEdoc results in empty files

asked on August 26, 2019

I'm trying to import pdf files from a local Windows directory via the SDK, but imported documents show up empty and have no pages. The account creating the documents has the ImportPDFPages attribute set to Yes. My code below:

            using (DocumentInfo doc = new DocumentInfo(RASession))
            {
                int newDocID = Document.Create(parentFolder + entryName, "DEFAULT", EntryNameOption.AutoRename,RASession);

                DocumentImporter DI = new DocumentImporter();
                DI.Document = Document.GetDocumentInfo(newDocID, RASession);

                DI.ImportEdoc(extType, filePath);
                DI.Document.SetTemplate("Template Name");
                DI.Document.Save();
                RASession.LogOut();
            }

The documents come in with the right name, path, template, and icon, but have nothing in Images or Text panes when opened in the repository.

Is there something wrong with my code?

0 0

Answer

SELECTED ANSWER
replied on August 26, 2019

Did you check the Electronic File Pane?  That's where it will be if you're importing an Edoc.  You need to set "ExtractTextFromEdoc" if you want to see anything in the text pane.

0 0
replied on August 26, 2019

I certainly didn't bring my brain with me today... Thanks for calling it out!

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.