If I understand correctly, you want to embed some metadata in exported PDFs, so that you can use another API to conditionally add watermarks to the PDFs. Could you use DWGPROPS to pass the data? Can't speak for all plotters, but I believe the DWG to PDF.pc3 exports the drawing properties (DWGPROPS) by default. I use Bluebeam and did confirm that the data was present in the Document Properties.
If you need to do this with code, here is a C# example of setting the default drawing properties:
namespace YourNamespace
{
public class YourDrawingProps
{
[CommandMethod("SETDRAWINGPROPS")]
static public void SetDrawingProps()
{
Document doc = Application.DocumentManager.MdiActiveDocument;
Database db = doc.Database;
// Set DWGPROPS (Standard)
DatabaseSummaryInfoBuilder summaryInfoBuilder = new DatabaseSummaryInfoBuilder(db.SummaryInfo)
{
Title = "YourTitle",
Subject = "YourSubject",
Keywords = "YourKeywords"
};
db.SummaryInfo = summaryInfoBuilder.ToDatabaseSummaryInfo();
}
}
}