Highlighted

Watermark warnings

santhosha583576

16-07-2019

Hello,

I am running into a warning during my PDF assembly and output process.  The warning seems to exist for every page of the PDF document having a watermark.  Here is the logging entries that can be found in the server.log file on our output server.  Is there a way in the administration UI to set transparancy that I may have missed, a server configuration that needs to be updated, or is this something that needs to occur on the LC Designer side?  Any feedback would be appreciated.  Thanks!  Richard

2013-11-26 08:59:16,516 INFO  [com.adobe.livecycle.assembler.AssemblerServiceImpl] (http-0.0.0.0-8080-20) ALC-ASM-N00-001: Execute: invoke() begin on thread http-0.0.0.0-8080-20 18278

2013-11-26 08:59:16,578 INFO  [com.adobe.internal.ddxm.Executive] (http-0.0.0.0-8080-20) DDXM_N00000: Started processing result named Return.pdf

2013-11-26 08:59:16,731 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

2013-11-26 08:59:16,734 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

2013-11-26 08:59:16,734 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

2013-11-26 08:59:16,750 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

2013-11-26 08:59:16,751 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

2013-11-26 08:59:16,769 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

2013-11-26 08:59:16,770 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

2013-11-26 08:59:16,771 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

2013-11-26 08:59:16,772 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

2013-11-26 08:59:16,773 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

2013-11-26 08:59:16,774 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

2013-11-26 08:59:16,791 INFO  [com.adobe.internal.ddxm.Executive] (http-0.0.0.0-8080-20) DDXM_N00001: Successful assembly of result named Return.pdf

2013-11-26 08:59:16,794 INFO  [com.adobe.livecycle.assembler.AssemblerServiceImpl] (http-0.0.0.0-8080-20) ALC-ASM-N00-001: Execute: invoke() end on thread http-0.0.0.0-8080-20 18278

Replies

Highlighted

workflowuser

Employee

16-07-2019

<DDX xmlns="http://ns.adobe.com/DDX/1.0/"> <PDF result="result"> <PDF source="sourcePDF1"/> <PDF source="sourcePDF2"/> <Watermark rotation="30" scale="900%" opacity="25%"> <StyledText> <p>Confidential</p> </StyledText> </Watermark> </PDF> <?ddx-source-hint name="sourcePDF1"?> <?ddx-source-hint name="sourcePDF2"?> </DDX>

The watermark will not interfere with your existing PDF content because it will be placed behind the content. It is best to set the opacity of your watermark to a number less than 50 so that any text overlaying the watermark remains readable

Highlighted

santhosha583576

16-07-2019

Does it solve the following Warning

2013-11-26 08:59:16,734 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

And The opacity will be sent by the Client

Highlighted

Mayank_Gandhi

Employee

16-07-2019

Hi Richard,

Yes, You can set the transparency from the AdminUI for the document security but for assembler, you have to user DDX and you can use Assembler IVS to test the change . I will share the screenshot shortly.

How about testing from workbench?

Thanks,

Mayank

Highlighted

Mayank_Gandhi

Employee

16-07-2019

Using workbench you can create a workflow and have dynamic values in DDX. Which can be updated on runtime.

Hope this will solve your purpose.

Highlighted

santhosha583576

16-07-2019

I have a workflow already built and the DDX is as below

import java.util.Map;

import java.util.HashMap;

import java.lang.String;

import java.lang.StringBuilder;

import java.util.List;

import com.adobe.idp.Document;

String QUOTE = "\"";

quote( String s ) {

  return  QUOTE + s + QUOTE;

}

generateDDX() {

Map watermarkProperties = patExecContext.getProcessDataMapValue("/process_data/watermarkProperties");

final StringBuilder ddx = new StringBuilder();

final String newLine = "\n"; 

ddx.append("<?xml version=" ).append( quote("1.0" ) ).append( " encoding=" ) .append( quote( "UTF-8") ).append(  "?>"  ).append( newLine );

ddx.append("<DDX xmlns=" ).append( this.quote( "http://ns.adobe.com/DDX/1.0/" ) ).append( ">" ).append( newLine );

ddx.append("<PDF result=" ).append( this.quote( "out.pdf" )).append( ">" ).append( newLine );

ddx.append("<Watermark").append( newLine );

ddx.append(" alternation=").append(this.quote(watermarkProperties.get("watermarkAlternation"))).append( newLine );

ddx.append(" fitToPage=").append(this.quote(watermarkProperties.get("watermarkFitToPage"))).append( newLine );

ddx.append(" horizontalAnchor=").append(this.quote(watermarkProperties.get("watermarkHorizontalAnchor"))).append( newLine );

ddx.append(" horizontalOffset=").append(this.quote(watermarkProperties.get("watermarkHorizontalOffset"))).append( newLine );

ddx.append(" opacity=").append(this.quote(watermarkProperties.get("watermarkOpacity"))).append( newLine );

ddx.append(" rotation=").append(this.quote(watermarkProperties.get("watermarkRotation"))).append( newLine );

ddx.append(" scale=").append(this.quote(watermarkProperties.get("watermarkScale"))).append( newLine );

ddx.append(" showOnScreen=").append(this.quote(watermarkProperties.get("watermarkShowOnScreen"))).append( newLine );

ddx.append(" showWhenPrinting=").append(this.quote(watermarkProperties.get("watermarkShowWhenPrinting"))).append( newLine );

ddx.append(" verticalAnchor=").append(this.quote(watermarkProperties.get("watermarkVerticalAnchor"))).append( newLine );

ddx.append(" verticalOffset=").append(this.quote(watermarkProperties.get("watermarkVerticalOffset"))).append( newLine );

ddx.append(" replaceExisting=").append(this.quote(watermarkProperties.get("watermarkReplaceExisting"))).append( ">" ).append( newLine );

ddx.append("<StyledText").append( newLine );

ddx.append(" color=").append(this.quote(watermarkProperties.get("watermarkColor"))).append( newLine );

ddx.append(" font-family=").append(this.quote(watermarkProperties.get("watermarkFontFamily"))).append( newLine );

ddx.append(" font-size=").append(this.quote(watermarkProperties.get("watermarkFontSize"))).append( newLine );

ddx.append(" font-stretch=").append(this.quote(watermarkProperties.get("watermarkFontStretch"))).append( newLine );

ddx.append(" font-style=").append(this.quote(watermarkProperties.get("watermarkFontStyle"))).append( newLine );

ddx.append(" font-weight=").append(this.quote(watermarkProperties.get("watermarkFontWeight"))).append( newLine );

ddx.append(" line-height=").append(this.quote(watermarkProperties.get("watermarkLineHeight"))).append( newLine );

ddx.append(" text-align=").append(this.quote(watermarkProperties.get("watermarkTextAlign"))).append( newLine );

ddx.append(" text-decoration=").append(this.quote(watermarkProperties.get("watermarkTextDecoration"))).append( newLine );

ddx.append(" text-indent=").append(this.quote(watermarkProperties.get("watermarkTextIndent"))).append( ">" ).append( newLine );

ddx.append("<p>").append(watermarkProperties.get("watermarkText")).append("</p>").append( newLine );

ddx.append("</StyledText>").append( newLine );

ddx.append("</Watermark>").append( newLine );

ddx.append( "<PDF source=" ).append( this.quote( "sourceDoc" )  ).append(">").append( newLine );

ddx.append( "<NoForms/>" ).append( newLine );

ddx.append( "<NoXFA/>" ).append( newLine );

ddx.append( "</PDF>\n</PDF>\n<DocumentInformation result='info.xml' source='out.pdf'/></DDX>\n" );

patExecContext.setProcessDataStringValue("/process_data/@base64Doc", watermarkProperties.get("inputPDF"));

patExecContext.setProcessDataStringValue( "/process_data/@assemblerDDX", ddx.toString() );

}

this.generateDDX();

Highlighted

santhosha583576

16-07-2019

I am getting the below warning whenever we are making a watermark transaction.

2013-11-26 08:59:16,734 WARN  [com.adobe.internal.pdfm.content.FormXObjectService] (http-0.0.0.0-8080-20) PDFM_W06008: The Watermark request requires transparency; distortions in the colors may occur.

How to resolve the Warning