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 have 2 different modules in my project
1)Album
2)User
In my album module index action shows the all data of album table.
I want to create the PDF from album table data. How can I configure it and which type of class can I use for PDF?
You need the ZendPdf package, just follow the instructions on the page. Documentation is not ready yet simply because it's not a core module. Documentation will probably follow as soon as all bugs are worked out with the core stuff.
I suggest DomPDF. It creates PDF documents based on html documents. It supports CSS for formatting, renders tables, embeds images and has all the features I have ever needed, and many more. It can even embed javascripts inside PDF which actually works.
I use Zend_View to render HTML document which I then pass to DomPDF to render PDF.
http://code.google.com/p/dompdf/
Related
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 2 years ago.
Improve this question
right now I'm writing a tex-template and I was wondering if it's possible to generate two PDF files while compiling one single LaTex file. Speaking more clearly, I'm writing a exercise sheet and one PDF file should include only the exercises and the other file should include the exercises as well as the solutions for it. Right now I'm working with
\usepackage{etoolbox}
\providetoggle{solution}
\settoggle{solution}{false}
where solution = false means, that no solution is shown in the PDF file.
I'd like to have one PDF file which is called e.g. "Exercise Sheet 1" where solution is false and another PDF file names "Solution for Exercise Sheet 1" where solution = true.
Don't know if this is even possible?
Thanks for your help!
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 learning Swift and I have a question about data model or the Model folder in Xcode. During a project 'Quiz app' we opened a new swift file in Model folder and started to write some code in it.
What is Data model and why instead of writing all the code just in the ViewController file we need to write a separate one in the model folder?
You could, technically, have all the code for your app in a single file. But it would quickly become really hard to find somethig and keep it readable. Also, when working in bigger teams, having a lot of code in few files results in merge conflicts, which could quickly get out of hand.
It is simply a good practice to keep all your classess in separate files, grouped in folders.
As for what a „data model” is - it’s just a representation of your domain problem in code. These classess will most likely represent data you retrieve from web, or create in app to perform some further operations on them or to use them as input for views to present them to the user.
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
Hi Im currently developing an app where I have some text which informs the user about something. This information is also on my website and what i want to do is when i change the information on my website I also want the text in my app to change. I know that you can create a backend tableview with for example parse but that's not what Im looking for. I've done som research and think what i need do to is use JSON in some way to display the text from my website in my app. Pleas comment If you don't understand what It s that Im trying to accomplish. If you could either link a tutorial or explain how/if this is possible I would appreciate It very much!
you can make a json call from your app to a url and have a script or file in your website that returns the information you want, this will make it easy to change it in future. then use the same script as the basis ( again using a json call) to get the text for the specific webpage.
It's difficult to answer more specifically since you've mentioned no technology base for your website.
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 crawl an entire website. I am using Simple_html_dom for parsing but the problem is that it takes only one webpage link at a time. I want to provide only start (home page) link and it should crawl and parse all the web pages of that website automatically. Any suggestion how to do this ?
When parsing the DOM of that single page, store all links (within the same domain) in an array. Then, at the end of parsing, check if the array isn't empty. If it isn't, take the first link and do the same.
So something like (code sample written with Python-like syntax, but you can adapt it to PHP easily - mine is rusty).
referenced_links = ['your_initial_page.html']
while referenced_links: # if the array isn't empty...
crawl_dom(referenced_links[0])
referenced_links.pop(0) # remove the first item in that array
def crawl_dom(url):
# download the url, parse the DOM and append all hyperlinks to the array referenced_links
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 am looking to export data that a user creates in my app in a formatted style. What I mean by this is I would like it to have capabilities like a word document with centered headers, larger font in certain places, etc... In the end the user will be emailing the document, which is why I would like it to look nicer than a standard plain text document. There has to be a way to do this right?
If you could point me in the right direction to get this functionality that would help me a lot..
Create an HTML document with inline styling. You can then use that directly in the body of the email message as an HTML email (I know they can sometimes be frowned upon).
But to be honest, that'll be the quickest way to achieve what you are after.
maybe can you give a look at:
http://www.cocoanetics.com/parts/dtrichtexteditor/
https://github.com/enormego/EGOTextView
https://github.com/omnigroup/OmniGroup/tree/master/Frameworks/OmniUI/iPad/Examples/TextEditor/
and this apple documentation:
https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/AttributedStrings/Tasks/RTFAndAttrStrings.html