After adding the text watermark and clicking on the PDF, Acrobat reader will display a large blinking cursor that looks more like a rendering artifact or start selecting the watermark text.
Can the watermark text be made non-selectable?
The watermark is a large "Draft" text under the existing content: using c# itextsharp PDF creation with watermark on each page
To my knowledge there is no way to make text non-selectable.
As an alternative to the large blinking cursor you may instead put an image of your watermark on the PDF. This would instead give a small cross-hair cursor when you mouse over the watermark image.
Example:
How can I insert an image with iTextSharp in an existing PDF?
Related
I am trying to get the position of Paragraph in pdf file.
Right now I get it at pdf generation time, by getting the current position before/after adding the paragraph to the document. And then I use that position to edit.
Is there easy way to find location of paragraphs, after the pdf is generated?
Should I stop using paragraphs and position, and switch to template with AcroForms for filling in data programatically?
Everything works, but It feels like ive selected the wrong approach.
Thank you in advance.
Imagine a pdf with text and a application that test images over the text.
In every test pdf is saved and the next test using same pdf.
The first time you add image under text you can see the results, next time you will try you add image under is not appear because first image cover it.
So...exists something GetBetween or can i choose the layer that i want?
If i use GetUnderContent only first image appears and all others are hide.
If i use GetOverContent then the text is covered by image.
I use evaluation version of evopdf.
Actually, evopdf truncate contains in the render pdf document.
I think that evopdf only render the part of document visible in window browser.
Is your HTML content inside a scrolling area? In this case you have to either create a version of the HTML which displays the entire content inside the scrolling area or set a large custom viewer height in HtmToPdfConverter.HtmlViewerHeight .
For example:
// Create a HTML to PDF converter object with default settings
HtmlToPdfConverter htmlToPdfConverter = new HtmlToPdfConverter();
// Set HTML viewer height in pixels to convert the top part of a HTML page
// Leave it not set to convert the entire HTML
htmlToPdfConverter.HtmlViewerHeight = 2000;
You can also find the working example with C# source code at http://www.evopdf.com/demo/ where you can test online your HTML page.
We have pdf files which have mixed data of text and images. We can get text and images separately but how we can get text and image with same exact format on pdf file? like 3 line of text and then image and again text etc...
I have PDF template with a large text-box. Based on the size of the content, the textbox comes-up with a vertical scroll bar. But issue comes up when I flatten the PDF using PDFStamper, the text box does not have the scroll bar and user see only half of the content.
Is there way to allow scroll bar in the text box after flatten the pdf?
Please note that while designing the textbox in the template we have enabled scroll bar option.
No. Flattening a PDF effectively disables interactivity. What your printer kicks out is what you see on screen. One work around is to drop the font size on the field for long items. Another option is to make the PDF read-only instead flattening it. See this post from the office iText mailing list for more.