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

Question

Question

CSV to TIFF for Annotations

asked on May 21, 2020

We have a workflow which is taking in a data file and producing CSV reports with metadata. However, we're wanting to also add Annotations to the generated reports and CSV files don't seem to be able to have annotations.

Is there anyway to convert a CSV file into a TIFF file so that we can add annotations to the generated reports? 

0 0

Answer

SELECTED ANSWER
replied on May 22, 2020 Show version history

The conversion you are looking for can be done in workflow, but you will need to script (or custom activity) the conversion.  You can either use a purchased DLL to do the conversion or you can code the conversion yourself.  You can see an example of creating a bitmap from text in Workflow Apply Stamp Limitations and specifically, the CreateStampImage function of my code.

0 0
replied on May 29, 2020

Managed to use System.Drawing to create an image and write that as the image pagepart of a new page appended on the documents.

 

Hit a small snag when pages that looked fine when opened in the web access portal were displaying as entirely black pages in the desktop app, but updating the image to be cleared with Color.White before drawing the text resolved that issue.

1 0
replied on May 29, 2020

Great! You can get pretty far with Drawing as long as your solution doesn't have to be flexible enough to handle things like line wraps. Since you are saving it as an image, don't forget that if you want the contents to be searchable you'll need to save the text source as a text page.

0 0
replied on May 29, 2020

Thanks, I am also writing to the PagePage.Text as well; however one new issue I've found is that the newly created documents each seem to have blank EDocument file associated with them.

I found this question:

 https://answers.laserfiche.com/questions/54948/Is-there-a-way-to-remove-an-electronic-document-via-Workflow-andor-the-Client 

So I know this can be removed in a workflow with Task > Remove Electronic Document, but since I am creating these documents within an SDK Script, is there a way to remove the Electronic Document reference using the DocumentInfo object before I ever save the document to the repository?

0 0
replied on May 29, 2020

You may want to try something like

If Doc.IsElectronicDocument Then
    Doc.DeleteEdoc()
End If

 

0 0
replied on May 29, 2020

Thanks, that works. 

0 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.