Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-24-2013, 09:52 AM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Programming › PHP v
« Previous 1 ... 14 15 16 17 18 ... 31 Next »

[Solved] [Read PDF File In PHP]

Home General Computer Multimedia Business Lounge

Pages (3): 1 2 3 Next »
Post Reply 
Tweet
Threaded Mode | Linear Mode
Solved [Read PDF File In PHP]
02-25-2011, 04:11 AM
Post: #1
Joris Offline
./Devilz Officer
Posts: 240
Joined: Feb 2011
Reputation: 3
[Read PDF File In PHP]
Brader2 semua, ane mau nanya ne...
gmana ya coding php buat membaca isi file pdf ke dalam halaman website?
Ane dah nyoba kaya gini : file PDF di convert dulu ke SWF baru dimasukin pake frame ke file HTML. Tapi jadinya agak lemot membuka file SWF-nya...
Apakah ada cara lain buat membaca langsung file PDF tanpa di convert ke SWF?

belajar
Find all posts by this user
Quote this message in a reply
02-25-2011, 02:54 PM
Post: #2
wenkhairu Offline
Administrator
*******
Administrators
Posts: 1,344
Joined: Dec 2009
Reputation: 260
RE: [Read PDF File In PHP]
maksudnya di baca gimana om ?
baca isinya kah ? atau sekedar menampilkan pdf-nya kah ? atau bagaiamana ni om ?
Visit this user's website Find all posts by this user
Quote this message in a reply
02-25-2011, 10:58 PM (This post was last modified: 02-25-2011 11:00 PM by Joris.)
Post: #3
Joris Offline
./Devilz Officer
Posts: 240
Joined: Feb 2011
Reputation: 3
RE: [Read PDF File In PHP]
(02-25-2011 02:54 PM)wenkhairu Wrote:  maksudnya di baca gimana om ?
baca isinya kah ? atau sekedar menampilkan pdf-nya kah ? atau bagaiamana ni om ?
Tampilin PDF nya om....yg penting ga lemot kaya tampilin fil swf...
Find all posts by this user
Quote this message in a reply
02-26-2011, 01:40 PM
Post: #4
wenkhairu Offline
Administrator
*******
Administrators
Posts: 1,344
Joined: Dec 2009
Reputation: 260
RE: [Read PDF File In PHP]
(02-25-2011 10:58 PM)Joris Wrote:  
(02-25-2011 02:54 PM)wenkhairu Wrote:  maksudnya di baca gimana om ?
baca isinya kah ? atau sekedar menampilkan pdf-nya kah ? atau bagaiamana ni om ?
Tampilin PDF nya om....yg penting ga lemot kaya tampilin fil swf...

hm..... bukannya kalo soft adobe reader udah ada terinstall otomatis akan baca ntu pdf file ?

bisa juga sih di program lewat php, cuman ane masih urang jelas maksud ente, apa baca line perline dari data pdf trus di tampilin atau cuma baca filepdf yang udah ada atau membeuat file pdf trus hasilnya di tampilin ? gimana tu om belajar belajar belajar
Visit this user's website Find all posts by this user
Quote this message in a reply
02-26-2011, 04:04 PM
Post: #5
Joris Offline
./Devilz Officer
Posts: 240
Joined: Feb 2011
Reputation: 3
RE: [Read PDF File In PHP]
(02-26-2011 01:40 PM)wenkhairu Wrote:  
(02-25-2011 10:58 PM)Joris Wrote:  
(02-25-2011 02:54 PM)wenkhairu Wrote:  maksudnya di baca gimana om ?
baca isinya kah ? atau sekedar menampilkan pdf-nya kah ? atau bagaiamana ni om ?
Tampilin PDF nya om....yg penting ga lemot kaya tampilin fil swf...

hm..... bukannya kalo soft adobe reader udah ada terinstall otomatis akan baca ntu pdf file ?

bisa juga sih di program lewat php, cuman ane masih urang jelas maksud ente, apa baca line perline dari data pdf trus di tampilin atau cuma baca filepdf yang udah ada atau membeuat file pdf trus hasilnya di tampilin ? gimana tu om belajar belajar belajar
Jadi gini om, misalnya ada file pdf di dalam web ane, trus ane buat satu page buat tampilin aja tuh pdf biar bisa dilihat doank...santai
Kalo diubah ke file swf trus ditampilin ke page lumayan lama sih...pinter
Find all posts by this user
Quote this message in a reply
03-01-2011, 02:01 PM
Post: #6
wenkhairu Offline
Administrator
*******
Administrators
Posts: 1,344
Joined: Dec 2009
Reputation: 260
RE: [Read PDF File In PHP]
sebenarnya ga perlu di konversi ke swf om, dan saya rasa memang tidak perlu dilakukan itu, untuk membaca file pdf kita bisa menebeded google doc untuk keperluan itu, tinggal sedikit koding php makan dokumenkita bisa di tampilkan tanpa harus konvert sana sini, om tinggal maukin kode ini di halaman web om
PHP Code:
<iframe src="http://docs.google.com/gview?url=<?php echo $nama_file;?>&embedded=true" style="width:600px; height:500px;" frameborder="0">
</
iframe> 

PHP Code:
$nama_file = "http://contoh.com/file.pdf"
/* 
  nama file hrus berbentuk lengkap sesuia dengan pathnya om
*/ 

[Image: 1234567890n.png]

tetapi beda cerita kalo pdfnya mau dibaca berdasarkan line per line (dirubah dalam bentuk text).
Visit this user's website Find all posts by this user
Quote this message in a reply
03-01-2011, 02:30 PM
Post: #7
s7evens Away
./Devilz Lover
Posts: 364
Joined: Dec 2009
Reputation: 3
RE: [Read PDF File In PHP]
Pake fpdf kan bisa om
Find all posts by this user
Quote this message in a reply
03-02-2011, 11:51 PM
Post: #8
Joris Offline
./Devilz Officer
Posts: 240
Joined: Feb 2011
Reputation: 3
RE: [Read PDF File In PHP]
(03-01-2011 02:01 PM)wenkhairu Wrote:  sebenarnya ga perlu di konversi ke swf om, dan saya rasa memang tidak perlu dilakukan itu, untuk membaca file pdf kita bisa menebeded google doc untuk keperluan itu, tinggal sedikit koding php makan dokumenkita bisa di tampilkan tanpa harus konvert sana sini, om tinggal maukin kode ini di halaman web om
PHP Code:
<iframe src="http://docs.google.com/gview?url=<?php echo $nama_file;?>&embedded=true" style="width:600px; height:500px;" frameborder="0">
</
iframe> 

PHP Code:
$nama_file = "http://contoh.com/file.pdf"
/* 
  nama file hrus berbentuk lengkap sesuia dengan pathnya om
*/ 

[Image: 1234567890n.png]

tetapi beda cerita kalo pdfnya mau dibaca berdasarkan line per line (dirubah dalam bentuk text).

Masukan kode itu dmana om?
Find all posts by this user
Quote this message in a reply
03-03-2011, 02:37 PM (This post was last modified: 03-27-2011 10:14 AM by wenkhairu.)
Post: #9
wenkhairu Offline
Administrator
*******
Administrators
Posts: 1,344
Joined: Dec 2009
Reputation: 260
RE: [Read PDF File In PHP]
ya dimana file pdfnya mau di tampiikan om, misalnya, saya punya file pdf yang di simpan dalam tabel (namanya) kemudian filenya di simpan dalam folder "file" dan saya ingin menampilkan file pdf itu ke browser melalui halaman baca.php
PHP Code:
mysql_connect("localhost","root","");
mysql_select_db("fb_test");

$file=mysql_query("select * from tbl_pdf where id ='1'");
while(
$pdf=mysql_fetch_array($file)
{
        
$dpdf="http://mysrver.com/file/".$pdf['data']."";
        echo
"<iframe src='http://docs.google.com/gview?url=$dpdf&embedded=true' style='width:600px; 
        height:500px;' frameborder='0'>
        </iframe>"
;
} 
Visit this user's website Find all posts by this user
Quote this message in a reply
03-06-2011, 08:37 AM
Post: #10
Joris Offline
./Devilz Officer
Posts: 240
Joined: Feb 2011
Reputation: 3
RE: [Read PDF File In PHP]
Ok om....langsung di coba......asikasik
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (3): 1 2 3 Next »
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] Attach File pada link mailto. Tamp4h 1 53 Yesterday 03:58 PM
Last Post: ketek
  [Tutor] mengatasi LFI (local file inclusion) dan RFI (Remote file inclusion) dellacroug 21 378 04-24-2013 06:50 PM
Last Post: civo
  [Ask] Script file zip selalu muncul peringantan "Class 'ZipArchive' not found" Tamp4h 6 104 04-23-2013 11:04 AM
Last Post: Tamp4h
  Cara Cepat Transfer File antar Hosting dengan php uchiha_sasuke 15 293 03-27-2013 06:59 AM
Last Post: uchiha_sasuke
  [Tutor] Membaca List File dari Directory abuabu_hat10 8 188 03-24-2013 04:28 PM
Last Post: abuabu_hat10
  [Solved] proteksi file & folder pakai shell_exec() ylime19 3 140 02-26-2013 01:40 PM
Last Post: eidelweiss
Exclamation [Solved] include file PHP aneh (gaktaukenapa) Near 12 206 02-23-2013 09:49 PM
Last Post: Near
  [Tutor] Scanner utk mengetahui perubahan file Regel 32 2,248 01-13-2013 07:29 PM
Last Post: Regel
  [Tutor] Cek double entry dari setiap line dalam 1 file. [PHP] ditatompel 18 364 12-03-2012 08:33 AM
Last Post: danisuzaku
  [Ask] AutoUpload File Dari Dropbox m1ch43lss 1 172 09-22-2012 05:17 PM
Last Post: ./ rex

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-24-2013, 09:52 AM 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