Sunday 22 December 2013

PDF Watermark Internal error: Unexpected Exception (null) during saveTemplate

For whatever reason, it seems that its impossible to change Watermark Templates in the PDF Watermark Administration Applet. Everytime I try I get the above error.

But a work around for this is as follows:
Note the Content ID, if you do a quicksearch for that Content ID you should be able to find and Check Out the .HDA file which contains all the settings defined in the PDF Watermark Administration Applet.

The HDA should contain the following resultSets:
@ResultSet PdfwTextWatermarks
13
text
location
rotation
alignment
fontName
fontSize
fontWeight
fontColor
layer
pageRange
pageRangeModifier
x_coord
y_coord
@end

@ResultSet PdfwImageWatermarks
8
imageID
location
layer
pageRange
pageRangeModifier
x_coord
y_coord
scaleFactor
@end



Add in your settings into these resultSets in the typical HDA fashion and upload the .HDA file as a new revision.

Once you have uploaded your template as a new revision your changes will be immediately reflected in the PDF Watermark Administration Applet.


Cause:
I'm not 100% on the reason this is all buggered up but I suspect one of the following two reasons:

  1. IdcService=PDFW_SAVE_NEW_TEMPLATE contains bugs
  2. idcToken pdfwUserPassword LocalData parameters are blank in the Templates HDA file (though I think it'd be poor practice to have to include these).

No comments:

Post a Comment