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 would like to locate in which page(s) a word is located inside a pdf programatically. My application runs on php over linux.
Is it readable with a text editor?
If it is, you can loop the content and find the string with a regular expression. If the string Is variable and you are the one who wrote the file, try to put some fixed string before.
In some cases under Linux we use pdftops to convert the PDF in a human readable format, find the string looping the content file, and back to PDF with pstopdf.
Related
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 6 years ago.
Improve this question
I wrote web service which will generate label from certain parameters and will return it as PDF. Now I must improve it by returning generated label as PDF or ZPL format.
Unfortunately, I have zero knowledge on working with ZPL. What is ZPL? Is it some kind of file format? What is used for? How its generated? Any open-source PHP libraries for it?
It would be nice if someone would provide some whitepapers or some kind of reference about ZPL.
Web service is written in PHP.
I think you are looking for this information:
https://en.wikipedia.org/wiki/Zebra_(programming_language)
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 6 years ago.
Improve this question
I have reworded this question please disregard original comments
UPDATED QUESTION
If I want to remove one or more characters in a textarea using php, how would I do this?
MY SOLUTION FOR A SINGLE INSTANCE
str_replace("http://","",$_POST['Website']);
How would I remove/replace multiple items or lower upper instances, i.e. HTTP//: http//: HTTPS:// https//: hTTps//: ?
You either should have fixed dictionary for allowed tags and good PCRE knowledge (remember to use lazy quantifiers) or (and this I would advise) use markdown syntax (there are js editors) and compile it in php to valid html.
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 7 years ago.
Improve this question
my question is about PHP values into any file like:
.odt
.doc
.docx
.pdf
Is it possible to "transport" some of value from PHP e.x. $customer_name, into ready template of file? (.odt, .doc, .docx)
Thanks for answer.
Sure. For Word-like documents, you can use e.g. PHPWord: https://phpword.codeplex.com/
For PDF, there are plenty of libs. For easy and fast results, try fdpf: http://fpdf.de/
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 create a word application to automate the word document editing.Is it possible to create a word template using php
I'd recommend checking out phpLiveDocx: http://www.phplivedocx.org/
And some other questions on SO that might be worth reading:
Use PHP to create a DOC file on a Unix Box based on an HTML webform selection
Create Word Document using PHP in Linux
Reading/Writing a MS Word file in PHP
create word doc file from linux command line
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 to get something that has been shared on a website and it changes every day. but i dont know how to do this. how can i do this?
You could download the exact page you're after using file_get_contents
$web = file_get_contents("http://google.com")
You'd then have to strip out whatever it is you want from the rest of the source code on the website. That can be done by using strpos or stripos (ipos being case insensitive) to find its location, and then using substr to extract that part of the string.