Important alert: (current site time 7/16/2013 2:20:26 AM EDT)
 

winzip icon

Advance PDF Class Without Acrobat Reader

Email
Submitted on: 4/23/2008 3:51:26 PM
By: Faizi Baba 
Level: Advanced
User Rating: By 24 Users
Compatibility: VB 6.0
Views: 29407
(About the author)
 
     Now you can creat PDF files without having Adobe Acrobat Reader or Writer. Plz plz pleaseeeeeeeeeeeeeeeeeeeeeeeee vote for me

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :Advance PDF Class Without Acrobat Reader
'**************************************
Private Declare Function PDFReadFile Lib "kernel32" Alias "ReadFile" (ByVal hFile As Long, lpBuffer As Any, ByVal nNumberOfBytesToRead As Long, lpNumberOfBytesRead As Long, ByVal lpOverlapped As Any) As Long
Private Declare Function PDFCreateFile Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, ByVal lpSecurityAttributes As Long, ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, ByVal hTemplateFile As Long) As Long
Private Declare Function PDFGetFileSize Lib "kernel32" Alias "GetFileSize" (ByVal hFile As Long, lpFileSizeHigh As Long) As Long
Private Declare Function PDFCloseHandle Lib "kernel32" Alias "CloseHandle" (ByVal hObject As Long) As Long
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

4/23/2008 12:42:02 AMIF NOT pulse beat THEN dead

Great. But "simple" doesnt produce anything (pdf with no visible text)

And dont use hardcoded path to "program files" this doesnt work on any other language!
(If this comment was disrespectful, please report it.)

 
4/23/2008 2:34:23 AMFabio La Vitola

Sorry guy, but atm this code is too poor and bugged for a serious test...
We all wait for some more implementations..
Anyway, thank you
(If this comment was disrespectful, please report it.)

 
4/23/2008 5:30:37 AMRobert Rayment

Can't read test.pdf with Acrobat Reader 5. Errors - "1. Problem reading document(14)--2. Can't find Font in Resource Dictionary - use Helvetica instead."
(If this comment was disrespectful, please report it.)

 
4/26/2008 1:19:15 AMRuturaaj

This class is too slow. It's taking a lot of time to insert JPG image and create PDF file. How can this be made faster? Commercial Libraries to create PDF are just too fast than this code. Nevertheless, this code is excellent for someone who wants to know how to write PDF from the scratch and also good to produce Reports in PDF. I don't see any other use of this code right now because of its slow speed. Can you improve on it?
(If this comment was disrespectful, please report it.)

 
4/27/2008 2:33:12 AMIF NOT pulse beat THEN dead

I wish I could revoke my vote...
(If this comment was disrespectful, please report it.)

 
5/20/2008 4:58:55 AMJaWiR

goood! i like it!
(If this comment was disrespectful, please report it.)

 
10/23/2008 4:53:31 PMtene

i view
(If this comment was disrespectful, please report it.)

 
3/27/2009 5:30:59 AMLennie

Hi, Regarding the Advance PDF class using Windows API, can you please share with me the full script as I have to extract data from Table and write it to PDF file.

Thanks,

Cheers,
Lennie
(If this comment was disrespectful, please report it.)

 
5/24/2010 11:51:21 AMEdgardo Tissera

I need the files *.font in spanish. Please upload it or indicate link for download.
Thank you for the code. Congratulations!
(If this comment was disrespectful, please report it.)

 
1/11/2013 3:40:21 PMinfedwise

please help! need Cyrillic .font :(
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.