Bottom Watermark text cut off if Align to Bottom

Have questions about novaPDF (desktop or server), or having problems using it? Ask here for help.
Post Reply
Byron_Upchurch
Posts: 2
Joined: Tue May 13, 2014 6:19 pm

Bottom Watermark text cut off if Align to Bottom

Post by Byron_Upchurch »

Issue: The watermark line of text is cut off at the bottom of the page if it is set to "align to bottom."

Steps to reproduce:
1. Choose any document and begin the process of printing to PDF. In Microsoft Word, press Ctrl+P to show the "Print" options and select the Nova PDF printer, but do not print just yet.
2. Click "Printer Properties" to configure how the PDF will print.
3. On the "Watermarks" tab of the "Printer Properties" dialog, add new text by clicking "New Text." Make sure you have included a lower case "y" and "p" somewhere in the line.
4. Click the "Edit" button to edit the watermark. When the "Edit Watermark Text" screen appears, click "Custom Position."
5. Under "Position", select "Customize Origin."
6. Under "Origin", uncheck "Center vertically" and select "Align to bottom."
7. Click OK to all the dialogs, and click "Print" to print the document.

In the final PDF, observe the watermark placement. It is halfway off the page at the bottom. The stems of the lowercase "y" and "p" do not display. The watermark text should display fully above the bottom-most margin so that it can be read.

Is there are workaround that we can do in order to fix this?
Is this a bug pending a fix?

Thanks for your time.
Byron

Lorant (Softland)
Posts: 177
Joined: Wed Dec 16, 2009 10:48 am

Re: Bottom Watermark text cut off if Align to Bottom

Post by Lorant (Softland) »

We're working on a new version which revises this section completely and fixes that. Thank you.

Byron_Upchurch
Posts: 2
Joined: Tue May 13, 2014 6:19 pm

Re: Bottom Watermark text cut off if Align to Bottom

Post by Byron_Upchurch »

Hello,

I downloaded version 8 (latest build), but ran into an following issue. We are trying to display a watermark at the bottom of each page ("alBottom" in Delphi jargon). The page height is unknown. Therefore, we truly need to be able to simulate alBottom.

The following is a code snippet from your “HelloWorld” example project. This code should put the watermark at the bottom of the page, but it does not. What am I doing wrong?

Code: Select all

    pNova.SetLayoutOptionLong2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_UNITS, NOVA_UNITS_CENTIMETERS);

    //anchors
    pNova.SetLayoutOptionBool2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_LEFTANCHOR_USED, 0);
    pNova.SetLayoutOptionFloat2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_LEFTANCHOR_OFFSET, 0);

    pNova.SetLayoutOptionBool2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_RIGHTANCHOR_USED, 0);
    pNova.SetLayoutOptionFloat2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_RIGHTANCHOR_OFFSET, 0);

    pNova.SetLayoutOptionBool2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_TOPANCHOR_USED, 0);
    pNova.SetLayoutOptionFloat2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_TOPANCHOR_OFFSET, 0);

    pNova.SetLayoutOptionBool2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_BOTTOMANCHOR_USED, 1);
    pNova.SetLayoutOptionFloat2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_BOTTOMANCHOR_OFFSET, 0);

    pNova.SetLayoutOptionBool2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_VERTANCHOR_USED, 0);
    pNova.SetLayoutOptionFloat2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_VERTLANCHOR_OFFSET, 0);

    pNova.SetLayoutOptionBool2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_HORIZANCHOR_USED, 1);
    pNova.SetLayoutOptionFloat2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_HORIZANCHOR_OFFSET, 0);

    //aspect ratio
    pNova.SetLayoutOptionBool2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_USE_ASPECT_RATIO, 0);

    //allow stretch with anchors when print on a different page size or layout
    pNova.SetLayoutOptionBool2(strWtmTextId, strLayoutTextId, NOVAPDF_LAYOUT_ALLOW_STRETCH, 0);
Thanks.

Lorant (Softland)
Posts: 177
Joined: Wed Dec 16, 2009 10:48 am

Re: Bottom Watermark text cut off if Align to Bottom

Post by Lorant (Softland) »

Hi,
Can you email us at [email protected], as we need more details regarding this

Post Reply