Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-23-2013, 05:18 PM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › PHP v
« Previous 1 ... 27 28 29 30 31 Next »

[ask]script php untuk convert

Home General Computer Multimedia Business Lounge

Post Reply 
Tweet
Threaded Mode | Linear Mode
[ask]script php untuk convert
04-11-2010, 09:44 AM
Post: #1
ping Offline
anak desa
Posts: 288
Joined: Mar 2010
Reputation: 6
[ask]script php untuk convert
bang ada yang punya script php untuk convert data dari doc ke pdf

thanks sebelumnya
Find all posts by this user
Quote this message in a reply
04-11-2010, 10:47 AM
Post: #2
bumble_be Offline
Sibuk Mencari duit
***
Posts: 419
Joined: Jan 2010
Reputation: 7
RE: [ask]script php untuk convert
sy bisa bntunya ini kk... cb baca2 di sini mungkin berguna kk

http://www.phplivedocx.org/2009/02/06/co...df-in-php/
http://www.wynia.org/wordpress/word-to-p...-word2pdf/

cmiwww
Find all posts by this user
Quote this message in a reply
04-11-2010, 10:47 AM
Post: #3
el_nino Offline
Rasa Cokelat
****
Global Moderators
Posts: 795
Joined: Dec 2009
Reputation: 16
RE: [ask]script php untuk convert
Coba yang ini om..[Image: acigar.gif]

Code:
<?php
set_time_limit(0);
function MakePropertyValue($name,$value,$osm){
$oStruct = $osm->Bridge_GetStruct("com.sun.star.beans.PropertyValue");
$oStruct->Name = $name;
$oStruct->Value = $value;
return $oStruct;
}
function word2pdf($doc_url, $output_url){
//Invoke the OpenOffice.org service manager
$osm = new COM("com.sun.star.ServiceManager") or die ("Please be sure that OpenOffice.org is installed.\n");
//Set the application to remain hidden to avoid flashing the document onscreen
$args = array(MakePropertyValue("Hidden",true,$osm));
//Launch the desktop
$oDesktop = $osm->createInstance("com.sun.star.frame.Desktop");
//Load the .doc file, and pass in the "Hidden" property from above
$oWriterDoc = $oDesktop->loadComponentFromURL($doc_url,"_blank", 0, $args);
//Set up the arguments for the PDF output
$export_args = array(MakePropertyValue("FilterName","writer_pdf_Export",$osm));
//Write out the PDF
$oWriterDoc->storeToURL($output_url,$export_args);
$oWriterDoc->close(true);
}
$output_dir = "C:/dev/openofficeintegration/docconverter/";
$doc_file = "C:/dev/openofficeintegration/docconverter/DpmR5Reqv1.20.doc";
$pdf_file = "DpmR5Reqv1.20.pdf";
$output_file = $output_dir . $pdf_file;
$doc_file = "file:///" . $doc_file;
$output_file = "file:///" . $output_file;
word2pdf($doc_file,$output_file);
?>

klo salah di koreksi lagi yua [Image: bike4_smilie.gif]
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2010, 02:16 AM
Post: #4
ping Offline
anak desa
Posts: 288
Joined: Mar 2010
Reputation: 6
RE: [ask]script php untuk convert
makacih ya kk .... untuk bantuanya.....
ane coba dulu ....
Find all posts by this user
Quote this message in a reply
04-18-2010, 02:30 AM (This post was last modified: 04-18-2010 02:31 AM by 7460.)
Post: #5
7460 Away
si unyu-unyu
***
Posts: 156
Joined: Dec 2009
Reputation: 10
RE: [ask]script php untuk convert
(04-11-2010 09:44 AM)ping Wrote:  bang ada yang punya script php untuk convert data dari doc ke pdf

thanks sebelumnya

nih om, download ini aja..
(klik yg tulisan warna biru)
Find all posts by this user
Quote this message in a reply
04-20-2010, 09:15 AM
Post: #6
ping Offline
anak desa
Posts: 288
Joined: Mar 2010
Reputation: 6
RE: [ask]script php untuk convert
terima kasih om momod .... ijin sedot om
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Ask] Ada Gk script auto unfollow all following? wildan123456 12 145 05-14-2013 12:58 PM
Last Post: Coziboy
  [Tutor] PHP untuk pemula bagian 1 777r 9 214 05-06-2013 03:47 PM
Last Post: Motaro Irhaby
  [Tutor] script untuk import excel ke MySQL dellacroug 9 146 04-29-2013 11:33 AM
Last Post: Sixmart
  [Ask] Script file zip selalu muncul peringantan "Class 'ZipArchive' not found" Tamp4h 6 104 04-23-2013 11:04 AM
Last Post: Tamp4h
  [Ask] escaping/convert json utf8 darkslayer 1 45 04-20-2013 11:50 AM
Last Post: wenkhairu
Question [Solved] Fungsi Untuk PHP Shell abuabu_hat10 6 185 03-12-2013 01:53 PM
Last Post: abuabu_hat10
  [Tutor] [php] Did You Mean PHP Script Google hakimoxz 3 208 02-18-2013 11:50 AM
Last Post: sotbot
Sad [Ask] Mohon bantuanya supaya script leech VinaGet v2.6.3 Final work zard22 5 182 02-12-2013 11:12 PM
Last Post: redhat21
  [Tutor] Dork Mencari Php Script Bot FB :) DC™Rebels 11 488 02-12-2013 07:51 PM
Last Post: eM.eL
  [Tutor] Aplikasi sistem pakar untuk mendiagnosa virus komputer berbasis php hakimoxz 6 265 02-02-2013 03:27 PM
Last Post: dHEL.AGY

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-23-2013, 05:18 PM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE