FPDF force print to "Fit to Page" - fpdf

Is it possible using FPDF to force the print diaglog to default to 'Fit to Page' in Adobe Reader's page scaling? I am currently working with an existing document that is 8.27" x 11.67", and rather than rewriting it to squeeze the extra .67" out of it, I'd like to set a value to make Adobe Reader set the scale to "Fit to Page" by default.

how about you set the page in A4 size like ' $pdf=new FPDF('P','mm','A4');`

Related

Mupdf: how to reset the resolution of pdf view page PROPERLY when the CDialogEx(MFC) OnSize?

my pdf file is rendering in a CDialogEx(it's MFC Class),and what i want is to reset the resolution when the Dialog resized.....
I find a solution via the mupdf offical downloads site:first set the desired resolution with pdfapp_setresolution(...), then call pdfapp_reloadpage(...). This reaches my goal but not perfect, with this method the displaying dialog gets a conspicuous redrawing (first the background color, then recovered back normal)...
anybody have a better optimization? thanks
1st. resize the pdfapp_t object according to the view_window size via API pdfapp_onresize()
2nd. adjust the resolution of pdfapp_t object//#attentison# here the resolution needs some transformation on the basis of yr actual requirement, referencing the API pdfapp_autozoom() in pdfapp.c source file.
3rd. show page via pdfapp_showpage()
thats all :) maybe helpful to sb.
PS:lesson is that referencing the official document or example in details first :)

Bild vergrößern mit Fancybox

I use ModX and would like to change the size of a displayed image under "fancybox". However, I can not find the CSS file in which the details are.
Code-Picture
The "element.style" can be seen in the picture. This is likely to be created. What I want to change is the "width: 494px;" To adjust the overall size of the image. Where can I find that ?
If you need to change that width - than change it in fancybox options - http://fancybox.net/api
Let me know if you need further help with that. You can and should use pthumb for the resizing and caching before passing into a slider or lightbox tool.
pthumb is the fork of phpthumbof.
https://modx.com/extras/package/pthumb

ISSUU change the default 'Click to read' text on a PDF

Like in the topic: Is there a way to change this text? When I embed the code on my site the generated structure is flash and I can't access it. The only exception is the Chromium Browser which generates element and I can change the text via JS. But can I do something with the flash content or change this text somewhere on the issuu account page before publishing the content?
You can customize the Issuu viewer, haven't tryed it yet, but have a look at these pages, they should point you in the right direction:
http://developers.issuu.com/customize/
Especially changing language and stuff shouldn't be too hard.

Modx multiple contents with CKEditor

I am building a website with the Modx CMS.
Now i want to have multiple content area's on one page.
My solution: create an extra TV, set the TV with form customisation to the content, so the tv is under the content.
I created a template looking like this:
[[$top]]
<h1>[[*pagetitle]]</h1>
[[*content]]
[[!myCustomSnippet]]
[[*Other Content]]
[[$bottom]]
After creating the TV, i've set it's region to modx-resource-content.
The result:
As you can see, the text is messing with the CKEditor.
Somebody any ideas how to fix this?
(Using version 2.3.1-pl)
If you are looking to get TVs appear under the content textarea, it is better to use MODX system setting to that. Please goto Settings, and search for tvs_below_content and set it to Yes.
By doing this, the TVs will appear under the content textarea on single page instead of having their own separate tab.
Hopefully this helps.

get PDF page title

Is it possible to get page title via iText?
The PdfTextExtractor returns all text from the page but I don't know what line is title. Also, title may contain more than one line
I don't know coordinates of title thus I can't use RegionTextRenderFilter
I can try to analyze the font size and take the line(s) with biggest font but TextRenderInfo doesn't provide public access to gs (private final GraphicsState gs)
Any other ideas?
Pages within a PDF don't have titles, they just have text that happens to be bold or in a large font and appears in an area you consider to be "more top" than other pieces of text. It sounds like you know this already, I just needed to be clear on this.
See my post here which shows how to get font information by subclassing ITextExtractionStrategy. My sample targets iTextSharp which is the .Net port of iText but they match pretty much feature-to-feature. The biggest differences is that Java uses getXXX and setXXX whereas .Net just uses XXX for both. Otherwise everything should port just fine.
The moral of the story is that you are going to have to write some arbitrary rules defining what you think of as a "title" and then parse based on those rules.