how to bind picture with content in itext when picture is large? - itext

I encounter a problem: for example, I want to insert a picture in page 1 after some content, but my picture is very large so the picture will insert in page 2 and the page 2 content will appear in page 1, so how to bind this picture with page 1 content, and the page 2 content will appear after picture?

Related

How to Increase the pdf page width dynamically to render the HTML page with iText?

I have a HTML page which contains a table which has many columns and they do not fit in screen, so one viewing the the table has to scroll left to right to see full content as width of the page is larger than screen.
When i'm converting this HTML page to PDF the content which are not visible without scrolling are not rendered in PDF document. Is there any way we can get the HTML page width and increase the PDF page width?

hide an image from facebook

I want Facebook to ignore a particular image on a page. Is there any tag I can use that will hide an image from Facebook when users share a page?
We are using Joomla 3.4. The article pages that have an intro section that displays on category listing pages but is hidden on the actual article page. The intro section has a thumbnail 75 x 75.
In the main body of the article there is a larger image that we would like to display on Facebook but the og:image always selects the thumbnail first.
Is there any way I can add some parameter to the thumbnail so that it will be ignored?
Why don't you explicitly specify the larger image in your og:image tag? If you specify more than one og:image, as far as I know the first one is selected.
See
https://developers.facebook.com/docs/sharing/webmasters#images
https://developers.facebook.com/docs/sharing/webmasters/optimizing#cachingimages
https://developers.facebook.com/docs/sharing/best-practices#images

Word 2013 Automated Page number calculation

I want to write the current page number of a page that contains a picture as text. and I want it to be updated if the page number changes.
Example:
Picture1 is on page 1.
On page 2 I'll write something like "look at my picture1 on page 1".
Then I add text at the beginning of page 1.
So Picture1 moves to page 2 and my text moves to page 3.
Now, I want to read on page 3 "look at my picture1 on page2".
Is it possible to generate a page number of a picture by using field functions?
Now I solved my problem by using cross-references.

How to insert different text with different format on each page in Libre Office Writer?

How can I add a different text to each header and footer of each page in LibreOffice Writer? If I edit the header of a page, the text automatically changes on the others. I want them to behave independently.
EDIT: What I would like to achieve is this: let's say I have 7 pages, the first one doesn't have neither a header or a footer, it's just a simple page with an image.
The second page should have an "INDEX" header and a footer at the bottom of the page with the page number "2" on the right. The third page should have another header, or better a header with a different text, different text-size and with italic style, and the footer should have the page number "3", and so on.
If I click Insert->Fields->Number of pages I get the total of the pages of my document and this is not what I am looking for. But also clicking on Insert->Fields->Number of page doesn't help cause if I have e.g. the "INDEX" page and I click on Insert->Fields->Number of page, I get the number "3" instead of the number "2". Also I have noticed that my footer style is different on some pages, how can I make it the same for every page?
For different page numbering, you will have to use page styles. If your document contains a front page, one or more index pages, and the main content pages, you could create three different page styles (frontmatter, index, maincontent). To change from one page style to the next one, you need to set manual page breaks, telling LibreOffice which page style to use after the page break: Menu Insert -> Manual Break:
Using the "Style" ComboBox, you can select the page style to use for the pages following the break.
For each page style, you can set different headers / footers, e.g. to hide page numbering on the front page. Also, you can set the page numbering to start with 1 instead of the "physical" page number (for example, if the front page doesn't count as page 1, you could set the following page style to start with 1 instead 2).
The most important point is diving the document in logical units using page styles. After this is done, you can set different paragraph styles for each page element (header, footer), allowing to set a different text size only for the header of the "index" part of your document.

Multiple Pages in iReports

First off, I am using a version of iReport 2.0.0.
A customer has asked for a 2 page report. This report contains a header (which is shown on both pages with the page number and then some static information), one block of information that is queried from the Oracle server, and then about 7 static images that cover up the rest of the front page and the second.
The problem is, there is no way to create a second page in iReports. So to work around this, I tried doubling the page size for 2 pages and inserting a page break where the first page would end. While this looks great in iReports, when I execute it in PDF format, I get the first page with all the right information, and then 11 inches of white space, and then the page all correct, except with 11 inches of white space.
I tried shrinking the page back down to 11 inches again, however, when I do that I get a build error saying my details section is out of the margins and it just overlaps all my images and I basically just have one page again.
Does anyone have a solution for multiple pages like this? Thanks.
Put the page number and page header stuff in a page header band, then the database-driven data and the images in the detail band. Jasper should flow the images into the second page when it runs out of room on the first.