creating Page turner effect for PDF files with angular JS [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Is there a way to create page turner effect for PDF files with angular? Jquery solutions are also fine. I have seen turn.js which uses html. Can any one help out to find a way for PDF files?

If you are talking about the pages within a PDF having a page curl effect then it is not something you can do with js, html or anything else outside the PDF itself without converting the PDF to something else (ie flash, jpg images, etc).
Last time I checked the only way to achieve this within a PDF was by using Acrobat Pro or InDesign and using 'Page Transitions'.
Please note that out of the available page transitions 'Page Turn' (the curl effect you want) will cause the document to be converted to a flash file and then embedded in the PDF.
I'm sorry if this is not what you want to hear. Rather than creating fancy page curl/turn effects it is probably better to concentrate on producing a well designed, easy to navigate document with great content. This will provide much better value.

Related

I need an advice for web developpment [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I want to code a website, showing 7 elements: one image (that will be changing), and 6 buttons (left, right, up, down, backwards, forwards), as shown in this example
The website should be able to "read" a 6 column file, which will have the following format example
with:
"ind_img_x" being the index for image x (numeric index)
"url_img_x" being the string containing the web address for image x
The file will control which image will appear accordingly with the button that is pressed.
For example: if the image displayed is "img_2", and the user press the "down" button, then the website will show the image 77452, and wait for the next button to be pressed.
The file will be rather big, able to contain several million lines (for example 10 million lines).
I should be able to update the file from time to time.
The web site will have to be able to get each image from the web (by means of the url in the file) The url data may consists of strings of large length. And the website has to be able to read these long strings and urls.
Would somebody please give me some advice about the best web developing language to use?
Do you think I'll be able to drop the file into the server as a text file, and ask the web site to read it each time, or will I have to put the data in a database?
I look forward to any advice that you guys may have,
Thank you!
Simplest way would be to use a webhosting service and parse the file with JavaScript. Especially because you said you already have JavaScript knowledge.
I would also suggest you to use CSV files: https://en.wikipedia.org/wiki/Comma-separated_values
Edit: When you have millions of lines you should use a database and use Nodejs libraries to connect to the database. Files are only recommended for small sets of data.

Chrome Extensions: Can I run a game on them? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm looking into chrome extensions, and I was wondering if it's possible to change a specific website to add a box and run a game on it.
I believe I can change the website, no problem. But I'm having trouble figuring out what I can use to run a game in there.
Do have in mind that I'm relatively new to web dev (but not to code).
Thanks in advance!
Yes, it is possible to manipulate pretty much anything on the website, as long as the user who installs the extension gives you permissions to inject content scripts into the page. Content scripts are the Javascript and CSS files that would contain logic for your game. Once injected, you can target a DOM element in the page and initialise your game there or even create a new element and embed it somewhere in the HTML.
This is a good place to start https://developer.chrome.com/extensions/content_scripts

Scrape entire webpage + css + javascript [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm trying to create a webpage version control backup / log. Where if the webpage (including JS and CSS) gets altered it saves a static copy on the drive.
How do I get the CSS and javascript of a webpage? Getting the HTML is easy by simply connecting to the webpage and read the contents and return it. But how do I get the CSS & Javascript of this page too?
The system doesnt have direct access to the webserver(s) so I have to do everything over the network remotely.
My idea is I search the HTML I scraped for .css and '.js' and take everything until the first quote " and directly access the CSS / javascript file as webpage. But I think this might not be very reliable?
Not sure why this is marked as too broad. I'm asking how to get the CSS and javascript of a webpage. I reformed my question, hopefully its better now.
Instead of searching for .js and .css , I'd look for <script> and <link> tags instead and use their src and href properties respectively to perform another network request and retrieve those files for comparison.
This will be more reliable because you won't have to worry about the page's content containing js or css, and you could also use an XML parser to ensure things like single-quotes vs. double aren't an issue.

How to embed a NOT Downloable PDF in your website? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to embed a PDF in my PHP based website. The Content in my PDF is unique and written by me and i want my web site viewers to view and read content but i dont want them download those pdf file.
Can can one help me out???
If that's your goal, you cannot include the PDF data in the web page. In order for the browser to display the PDF, it has to be able to download it; at that point, all bets are off.
To do what you describe, you'd have to render the output in some form that isn't readily reused, such as an image, or by embedding a Flash or Java applet and having it render the text graphically. But doing that means the content can't readily be indexed by search engines.* And of course, anyone sufficiently-motivated can apply optical character recognition to get the text.
(* Search engines are really smart these days, but I don't think they regularly apply OCR to images in hopes of finding index-able text there.)

Can javascript read webpage? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
can my page Javascript read same page which itself is loaded? Like other parts of page are dynamically loaded by other provider. I have tried many things, google as well, but now I am in doubt that it is posible. Or it is.
Thank You!
If the page has loaded and the javascript you are running is client-side (which it should be), you should be able to access everything on the page via the document object. I would advise reading about the DOM to familiarise yourself with this.
EDIT: removed link
Server side code (whether written in JavaScript or otherwise) is not capable of determining the final rendering of the page in the user's browser.
You could build the entire page yourself (and you could use a headless browser, like PhantomJS, to do it) but that could give different results to a visitor's as you would have a different set of cookies, a different source IP address, and so on.

Categories