WPCubed Product Support

wPDF Plus capabilities

support

Hi,

the present concept uses a string list with the print items. Any output is appended here.

Cleartext will clear that list. It does not change the page, just the stamping.

Highlighting text is something planned for WPViewPDF V3. (Underlining is not planned, due to technical reasons)

Julian

#4 ♥ 0
7k Views 2 users read 3 min

Julian

You state that
@CLEARTEXT - deletes the existing string for this page, if not specified the text will be appended
Do you mean that the entire page is deleted or simply the text starting at coordinates x,y? If the latter then how is the end of the highlighted text determined without a second set of x,y corrdinates?

In my case, I do not need to add or remove any text, rather I need to define a specific section of text on a single page to highlight or underline, for example three entire lines and the first four words on the fourth line. In this instance I envision clicking on the document to find the start of the highlight and then clicking on the end of the text to define the end of the highlight. Then change either the font color or the canvas color. Is this possible?

TIA

John

#3 ♥ 0
support

Hi,

This reference is from WPViewPDF PLUS.

The easiest way to do the stamping is to crate a simple script for each page. This script has to select the font, size and color and print the text at a certain position. The script is just a string list.

When using this functionality from your own code you will have to use the command:

PDFView.Command( COMPDF_StampText, stringlist, 0);

string list is an ANSI string with each line separated by CR-LN

Currently the stamping method understands this commands:

Pageno=X - sets the current page number

@CLEARTEXT - deletes the existing string for this page, if not specified the text will be appended
Font=...

Select a font. The following names can be used:

Times−Roman Helvetica Courier Symbol
Times−Bold Helvetica−Bold Courier−Bold ZapfDingbats
Times−Italic Helvetica−Oblique Courier−Oblique
Times−BoldItalic Helvetica−BoldOblique Courier−BoldOblique

Size=...
The size of the text in points. Fractions are possible.

Color=r g b
The color as RGB values in the range 0..1 for each element.

PS=some raw PDF postscript command (must be usuable between BT and ET)

x,y=some text

x and y specify the position of the baseline of the text using 72 dpi coordinates (fractions are possible)

#2 ♥ 0

In reading the wPDF information found on the web I find the statement - "with the "PLUS" version it is now possible to add text and vector graphics to certain pages of a PDF file (pdf stamping)". I do not find any reference to text highlighting.

I need allow a user to open an existing PDF file, select specific lines of text and add "highlighting" with a user defined color. Is this possible?

TIA

John

#1 ♥ 0