ODT file opening as left aligned page - html

I'm writing into a file with some HTML table content.
Now when I save it in .doc extension, then while opening it with Libre writer shows the content in center of the page.
But same when I save it with .odt extension the page shows at the left side of the window. Why this is happening and how can I bring it to center?

Go to Tools > Options... > Load/Save > General and make sure Load user-specific settings with the document is checked.
As far as I've been able to tell, each document will open with the same page view setting as the last saved document of that type unless that option is selected.
If you have a particular document that opens in with a page view setting you don't want, you should be able to change it by clicking the 'Single-page view' or 'Multiple-page view' icon for the desired page view and resaving the file.

Related

How to save a webpage

I'm on a website which has multiple links, but when I click a new link, it just changes the screen, not the url. I'm trying to save the screen, but it is saving the original screen. I right click, save as, webpage, complete or webpage, html only (I've tried both), but the original screen shows when I open the file. Any way to get the screen that I want? The one in which I clicked the link.
I have to assume that the links are javascript or php connected and are echoing a new html code when you click the link. The echo once clicked should change the source output to your browser. Try to right click on the page after you clicked the link and select view source, or inspect element and see if you can find these links targets' or copy paste the renewed browser code to your browser into a notepad document then save the file as a .html save to your desktop and open. That should create the same screen you see when you click a link.
click the link, view the change you want to save. right click and select "view source" copy the source and paste into notepad. Save as a.html file and run with a browser. this should produce the visual are looking for then print.

How to set height on PDF file when linked to from HTML?

I've just created a link which when clicked will take the user to a PDF file.
However when I open the PDF document on the mobile it shows only 3/4 of the page. The rest on the page is just black.
Is there a way in the CSS I can set a default zoom on the PDF?
HTML code:
<a href="privacyStatement.pdf" class="item icon icon-accessory item-icon-right">
Privacy Statement
<i class="icon ion-chevron-right icon-accessory"></i>
</a>
Have a look at this Adobe document:
Parameters for Opening PDF Files
(http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf#G4.1500435)
It describes different ways to set URL modifiers in a HTTP request.
But only Adobe PDF viewers will honor most of them.
Some may only work if the requested PDF is 'web optimized' (a.k.a. as 'linearized').
Some viewers made by other vendors may support some of these only.
You may be able to link to a specific page within a PDF hosted on the web.
So it could open on this page instead of the title page. The page=<pagenum> parameter is meant for that.
For example, try if your viewer jumps from the following link to Page 3 of above PDF Opening Parameter reference.
(The previous link requests the viewer to open the destination PDF directly at page 3).
Other parameters are useful too:
#search=<wordList>.
Example: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf#search="commentID"
#nameddest=<destination>
The PDF of course must contain such a named destination.
Otherwise it will not work.
You can create named destinations within a PDF with Acrobat (not with Adobe Reader, though!):
1. Go to the desired location in the PDF.
1. Click 'View > Navigation Tabs > Destinations'.
1. Go to 'Options', choose 'Scan Document'
1. Once scan is completed, select 'New Destination' from the 'Options' menu; then enter the name you want.
Important note: Named destinations are not the same as bookmarks.
There is no documented URL parameter which would link to a bookmark.
#comment=<commentID>
Specifies a comment on a given page in the PDF document.
Use the #page=.... command before this on.
For example: #page=1&comment=fd22-457c-84aa-2cf5bed5-452fde0e.
Zoom
Yes, you can also request a zoom level on a specific page:
#page=3&zoom=100
This would request a 100% zoom level for page 3.
#page=3&view=Fit
This is probably what you want!
It asks to display page 3, with its contents magnified just enough to fit the entire page within the window both horizontally and vertically.
If the required horizontal and vertical magnification factors are different, it uses the smaller of the two, centering the page within the window in the other dimension.
However, if it works is fully dependent on the viewer software, there is no guarantee for it to work. Good luck with that!
More details in the initially linked Adobe PDF file....

Flask download box

I'm trying to make a button that will show the "Save as" download box. The images that I want to offer for download are not in the static folder, nor they will be. Using flask.send_file works by opening the file in the browser.
How can I use send.file in order to bring the download box up, without submitting the page (without changing the current page)?
Look into the as_attachment option in send_file:
http://flask.pocoo.org/docs/api/#flask.send_file
Here's a somewhat related question:
Content-Disposition:What are the differences between "inline" and "attachment"?

Getting the generated sourcecode of a page in notepad

Is there any way of getting the source code of an HTML browser-page that is showing when i click inspect element(in chrome of firefox) and put it in a notepad(automatically) or maybe accessing it automatically somehow.
I do not want the original sourcecode but the one that is generated after all the javascripts have already run.
I would like to use the code afterwards in another web page and parse it...
later edit: i can actually click the html in the inspect element and click copy html but i need for a nother site to automatically acces this information because i will try reloading the site at regular intervals and need to constantly get the new html
With Firebug's HTML tab, you can right click on the element, and click "Copy HTML".
See also this post:
how to get fully computed HTML (instead of source HTML)?
press ctrl+u then it will display source code of html page then go to file menu and save it as html file in your system. then you can open it in html or another editor like netbeans /dreamviewer/notepad. I suggest you to open it in netbeans or dreamviewer will be better then open it in notped.
thanks.
You can use the web developer plugin for Firefox or Chrome. It gives you the generated source of a page.
In Opera , Right Click -> click on Inspect Element -> right click on <html> tag -> click on Edit Markup, from there you can copy the entire HTML code.
Edit -> In Oprea, right click on the page -> click on Source -> a new tab opens , in the menu bar of newly opened tab you have option 'Save' , from that option you can save the html code as .html , .txt.
Hope this helps you.

html dynamic change - how view changed contents?

Javascript run at page opening or later by user action like clicking a button with javascript attached, can alter the page contents and for instance change the layout in the browser.
Using right-click "View Source" shows the original content, not the changed one.
But how/from where can one retrieve the new, changed page contents?
You could use Firebug to see the live contents of the DOM, or you could use Web Developer's view generated source feature.