iText Flatten PDF - itext

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.

Related

Microsoft Access : form height size in view mode does not match the height in design mode

I have designed an Access 2016 form with an embedded subform.
When displaying my (main) form (shown in 1st picture), I notice a space below the sub-form and above the "Form footer" that I cannot see in design mode (see 2nd picture).
I have no clue how I could get rid of this unncessary space. Can someone help me out to find out what I have missed in the design of my userform ?
Many thanks in advance.
The simplest way would be to move the buttons from the form footer to the bottom of the detail section.
Then get rid of header & footer, and set the form to Auto Resize = Yes.
If you don't want to do this, you must set and save the display size (height) of the popup form in design view.
You can't do this with tabbed documents, you need to switch to overlapping windows:
https://support.office.com/en-us/article/show-or-hide-object-tabs-25074ab7-bcc8-466d-81aa-b6cf739715cb
(and then open the form non-maximized in design view.)
It may take a bit of trial & error to get the height exactly right in design view.
Similar question: Access 2010 Popup Report always matches size of Report Design window

How to get Vertical Scrollbar in Access 2010 on a long form? Seems like a glitch

I have created a large Access Form that spans the form header, all of the detail section 22" and form footer. When viewing the form it will not allow scrolling.
I have copied elements into a fresh database and a new form with the same results. I can send a zip file with this single form to anyone interested in helping.
Ensure that you have the Scroll Bars property set to Both or Vertical Only in the Form Properties:
Seems I figured it out. My Form Header Section was too long. Seems once it gets past 10" it disables the scroll bar on my screen as I was trying to use it improperly to extend the length of my form which is limited to just the 22" . Makes sense that the Header section is not designed to be scrolled, but I had some large images with text boxes between them. Just met a limit of Access

EvoPdf Page backgrounds and Margins

I am converting HTML pages using EvoPdf and would like to add a background image. I am generating documents and would like to add a cover page, I am doing this by prepending the HTML for the cover page then putting a page break directly after.
I am using this demo as a guide http://www.evopdf.com/demo/HTML_to_PDF/PDF_Pages_Background/Add_Elements_in_Background.aspx and have found that I need to remove the page margins for the image to cover the whole page otherwise it sits inside the margins.
If I remove the margins this means the content that flows over pages now starts directly at the top of the page and flows right to the bottom. I can fix this for left and right margins by putting this in the HTML but this does not work for top and bottom margins that flow over pages. (see the generated PDF from the above demo)
Is there a way to set the PDF page background irrespective of the page margins? I have been looking at creating multiple documents with their own configuration and merging the PDF's but I really want to avoid this.
You can set up a header and footer with the heights you wanted for the top and bottom margins, and then choose to not display them on the first page. This should give you the effect you're looking for.
You can find more information about how to do this here: http://www.evopdf.com/demo/HTML_to_PDF/Headers_and_Footers/HTML_in_Header_Footer.aspx

iTextSharp PDFForm Radio Button format change

We have a library of PDF forms which we're filling with variable content in text, check box and radio button form fields. Since the form is a template, we use the PDFStamper to perform the form fills. Everything is filling and checking appropriately. The problem we have is that the Radio Button controls are set up (in the form) to display a check mark and not the conventional dot within a circle. When filling the form manually with Acrobat reader, the buttons appear as check boxes however; after filling with iText PDFStamper, the resulting PDF radio buttons revert to their conventional style (dot within a circle).
Is this a bug or is it the intended functionality? Is there a work around. We are currently on V5.5.8. I know in previous version(s) the formatting was maintained.
Thanks for any help .

How do I prevent a font from extending off the top of a textbox?

I'm using a barcode font (IDAutomationMC39H) in an SSRS 2005 report I'm developing, and while it renders fine in the preview in BIDS, if I export the results to PDF, print the results, or do any of the above (including preview) in Report Manager, the barcode font is extending off the top of the textbox. The barcode itself is nearly 20px tall, even at only a 12pt size. I've tried changing the CanGrow value for the textbox, but it seems that even with that set off the barcode isn't pushing the bottom edge of the textbox downwards, it's simply extending over the top of the box. I've also tried resizing the textbox to allow it to contain the entire height of the font, but even with the VerticalAlign set to Bottom the barcode still sticks to the top of the textbox and overflows out the top.
See screenshot here:
http://imgur.com/JDC4Z.png
Does anyone know how to force the font to be bound by the top of the box, instead of overlapping it?
I tried with no real success to get font-based barcoding to work. Ended up getting the boss to pay for NeoDynamic BarCode Professional which works great and has a lot more flexibility than fonts.