EvoPdf Page backgrounds and Margins - evopdf

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

Related

How to prevent image in Crystal Reports 10 from being cut off to the second page

I'm making a Crystal Reports template. The template has some text in the header and then it has an image. If the text has a few lines, the image is normal and allowed in the first page, but if the text has many lines the image will be cut off in the first page and second page. Could it have ways to prevent the image from being cut off to the second page, such as auto-rescaling the image size?
I tried can grow and other settings in Crystal Reports 10, but it didn't work.
Report Design Picture
Make sure Keep Object Together in the properties of the image is checked. This will prevent CR to split your image across pages.
Best option in this case would be Create another section and place the image in that section instead of text and image in same section, This will force the image to go to another page if it doens't fit in first page.
For E.g, if data in report header, create one more section Report Header a and place text in that section and Report Header b and place image in this section

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

Xamarin Forms MultiPage<T> example

I am thinking to implement a custom tabbed page with some custom functionality and I thought about using MultiPage.
I am thinking about that because it seems to be the base class of the Forms's TabTabbedPage and would like to actually have a page at the bottom to display the buttons and the top space to display come content pages based on the selection(of the user).
Currently I only added 2 pages on the MultiPage and the last page from the data set is being displayed but I can't shrink its height so that I can add another content page below to add the buttons. I tried to set the HeightRequest on the pages but with no effect.
Does anyone have at hand some samples involving the MultiPage or knows how to change the ContentPage width or height?
Thanks a lot!

jasper reports issues with fixed page height

I have a report with dynamic subreports and a page footer that should stick to the bottom of the page. The problem is that the text is dynamic and some pages have more text, some other pages have less text. When the page has less text it pulls the page footer up and when the page has more text, it pushes the page footer down. I have specified the page height property pageHeight and I have placed my stuff in a band in pageFooter. I have tried using the background instead of pageFooter and this actually forces the page to have a constant height and it works fine except a tiny little detail that kills the entire solution. In some reports it prints the header of the table alone at the end of the page like in this image:
If I use the pageFooter the header of the table does not appear alone. It appears only when I use background. It seems to me as if when I force the page to the maximum height, it causes the head of the table to appear alone. The report is huge. It spans tens of xml files. I don't think it is a good idea to post it. And the xml is full of java code. I will post portions of it upon request, if that helps you get a better idea. I hope I explained the issue clear enough. Any ideas?
Thank you in advance,
Corneliu

iText Flatten PDF

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.