473,383 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

how to convert doc to pdf / image with php

omerbutt
638 512MB
hi,
i have been working from few days to convert from 1 image format to another like

from jpg -> png
cropping an image

and the converting document

pdf->tiff

i have done all these imagemagick supports all these conversions but there is no support for
MS Word (Doc/Docx) in imagemagick , does any one know how could it be done with php because i have been searching a lot but alas :( , can any 1 of you guide me how to do that or point me out to any link / source of learning which could guide me through
Regards,
Omer Aslam.
Aug 20 '10 #1

✓ answered by omerbutt

i have done the work which was really brillian of me .As php has no support for convertingMS Word Documents to images the approach i used was to first convert the doc to pdf and the use thaat pdf to convert into tiff image multipaged / single , i used open office and used php to interact with open office and convert the docuemnt of type
\doc /docx into pdf and then changed the pdf into tiff image
it really took me 2 to 3 week to complete the desired extensions work which was related to
1jpg
2word
3pdf
4gif
5jpg
yippe i did it all any body if needs help PM me and will send the code to you

4 8581
Thew
69
Hi

With GD Library you can convert images:

imagepng(imagecreatefromjpg("FILENAME OF .jpg"),"FILENAME OF .png");

Thew
Aug 20 '10 #2
omerbutt
638 512MB
yeah Thew
I know that i already told that i have done this thing but the only thing left is the
MS Word -> .tiff
Reagrds,
Omer Aslam
Aug 20 '10 #3
omerbutt
638 512MB
i have done the work which was really brillian of me .As php has no support for convertingMS Word Documents to images the approach i used was to first convert the doc to pdf and the use thaat pdf to convert into tiff image multipaged / single , i used open office and used php to interact with open office and convert the docuemnt of type
\doc /docx into pdf and then changed the pdf into tiff image
it really took me 2 to 3 week to complete the desired extensions work which was related to
1jpg
2word
3pdf
4gif
5jpg
yippe i did it all any body if needs help PM me and will send the code to you
Aug 25 '10 #4
@omerbutt
Hi,

I used imagemagic for jpg, pdf to jpg, n all. But i faced problem in "word to pdf" and "word to jpg" converion. suggest me and provide me the script.

Thanks in advance.
Sep 26 '13 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Frank Nero | last post by:
I am trying to write an image to output stream, but can not figure out how to convert System.Web.UI.WebControls.Image to byte . Please give me some hint. Thanks,
1
by: Daniel | last post by:
I have looked everywhere on the web for an answer to this and the only thing I can find is converting the image format when the file is present on the local filesystem. What I want to do is use a...
5
by: Trammel | last post by:
Hi, I have a vb.net program made to grab screenshots and then store them in image objects. The image is displayed in a pictureBox atm but I want to store the data in a String only. (Without...
5
by: Socrates | last post by:
I am interested in developing an online utility that will enable users to copy and past any image (or upload any image on the internet) to the online utility, which will then convert the image to...
8
by: piggy | last post by:
I am trying to convert an image to an byte array (tobytes() method) and from byte array back to an image (frombytes() method). The problem i have here is say the image size is 285 bytes but the...
1
by: gnkt4ujt2002 | last post by:
how to convert image into hex format in vs.net 2003 ....bcoz i hav 2 send image on mobile using sms tgate way.. i hav a clickatell sms gate way...
1
by: =?Utf-8?B?UmljYXJkbyBGdXJ0YWRv?= | last post by:
I'm using OpenGL in Visual Basic .net 2005 and i need to use the following function glBitmap(width as integer,height as integer, xorig as single, yorig as single, xmove as single, ymove as...
3
by: surajhs | last post by:
hi, I am working on java applet, i created a interface to view image in panel on jlist selected image item which is in local machine path, Now i need to convert image to xml and along with i...
1
by: surajhs | last post by:
i need to convert image to binary data and create xml file in applet, Please send samples links
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.