Watermark PDF's

Watermark PDF's

connor.ferguson
Advocate Advocate
2,001 Views
9 Replies
Message 1 of 10

Watermark PDF's

connor.ferguson
Advocate
Advocate

I am trying to write a custom job processor extension to add watermarks to PDFs, i can do this for Inventor Drawings using Inventor Server to add the watermark before exporting to PDF. How can i do this for AutoCAD drawings?

This is an issue i come across regularly, using the Job Processor allows me to do anything i need with Inventor Files but can't do anything with AutoCAD files, is there something i am missing?

0 Likes
2,002 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable

Hi Connor,

when I want to add watermark to PDF's first I ganerate PDF file using JobProcessor (it doesn't metter if it is generated from CAD or Inventor - PDF file is PDF file, after You have PDF file You can postprocess it as You require), then I use iText library to add watermark and then I attach such modified file to Vault as an attachment. Is it possible to do so in your enviroment?

If You need any further help do not hesitate to ask.

 

Rafal.

Message 3 of 10

Autodesk.Integration
Explorer
Explorer

Ok Thanks @Anonymous . When you say you generate using the Job processor, do you mean you just load the native Autodesk PDF Create job? You don't write to generate this yourself using AutoCAD?

0 Likes
Message 4 of 10

connor.ferguson
Advocate
Advocate

@Anonymous , This was posted by me. Logged in with different accounts in different browsers.

0 Likes
Message 5 of 10

Anonymous
Not applicable

No problem 🙂

For now I use PDF generation using Inventor API only. But I assumed that You are able generate PDF from ACAD API using some sort of translator. I thought that You have a PDF file on output then all You need is to postprocess it using, for example, iText library, loading binary PDF file to memory, modify it by adding watermark, and then attach it to Vault parent file.

 

Do You have a problem generating PDF file from ACAD file using JobProcessor?

Message 6 of 10

connor.ferguson
Advocate
Advocate
No, I can generate using AutoCADs COM API but this then means having AutoCAD installed on the Job processor workstation which I would rather avoid.
Using the Inventor Object provided by the Job Processor means we can generate PDFS for Inventor files without having Inventor installed, but this leaves a problem for AutoCad drawings. It is something I have struggled to find a solution to for a while.
0 Likes
Message 7 of 10

Anonymous
Not applicable

Ok, now I understand Your problem.

First, we have to find a way to bypass AutoCAD installation everywhere where jobprocessor will do it's work.

First what came to my mind is legacy Autodesk SDK for DWG files.

Take a look here: https://www.autodesk.com/developer-network/platform-technologies/realdwg

But I'm not sure that You want to create PDF files from DWG.

Message 8 of 10

connor.ferguson
Advocate
Advocate
Ok, Thanks, I'll take a look.
0 Likes
Message 9 of 10

Anonymous
Not applicable

Also take o look here, because RealDWG only reads that files. I'm afraid that You will have to use DWG TrueView and its ActiveX control, which by the way is not supported any longer, also 🙂

https://forums.autodesk.com/t5/net/realdwg-export-file-to-pdf-or-dwf/td-p/3070668

 

Message 10 of 10

corym
Advocate
Advocate

I am looking for a way to watermark Inventor files on state change - can you share the job you have created?

Cory McConnell
0 Likes