www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > ASP

    ASP Discussion and technical support for using and deploying Active Server Pages.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 12-26-2002, 08:13 AM
    vishu_gupt vishu_gupt is offline
    MS Technology Specialist
     
    Join Date: Dec 2002
    Posts: 54
    Generate PDF in ASP

    Hi,
    My problem is not directly related to the ASP but still writing it to this forum. My requirement is as follow:
    I have to generate a report in PDF and that report can have tables, images, hyperlinks. I need a program which can generate the PDF from HTML string (may be from file). In this PDF, hyperlinks should be clickable. I tried many options and only problem is Hyperlinks. These are coming as plain text on PDF.
    Help me

    Vishal
    Reply With Quote
      #2  
    Old 12-26-2002, 11:55 PM
    vishu_gupt vishu_gupt is offline
    MS Technology Specialist
     
    Join Date: Dec 2002
    Posts: 54
    Hi,
    I am not using PDF generator from Adobe. If it is available then inform me. I know that we can generate the PDF from acrobat but i have to do it from asp file on the fly. If this API is available from Adobe Acrobat then please give me a more details.
    I tried WebGrabber from Active PDF, Doc Converter Pro from Neevia.com but in every tool I am not getting the Hyperlinks as clickable links.

    Help me
    Vishal
    Reply With Quote
      #3  
    Old 05-05-2005, 06:46 PM
    lek lek is offline
    Registered User
     
    Join Date: May 2005
    Posts: 2
    Generate PDF files

    Hi, I don't know if it will help you but U can find a french website with others PDF solution here : http://dypso.free.fr

    Hope this will help
    Reply With Quote
      #4  
    Old 05-10-2005, 06:02 PM
    Bullschmidt's Avatar
    Bullschmidt Bullschmidt is offline
    Guru
     
    Join Date: Jan 2003
    Location: USA
    Posts: 688
    And some related links:

    How do I generate PDF files from ASP? - 11/1/2001
    http://www.aspfaq.com/show.asp?id=2207

    http://groups.google.com/groups?hl=e...sftngp03#link4
    __________________
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips
    Reply With Quote
      #5  
    Old 05-11-2005, 07:42 PM
    lfirth lfirth is offline
    Registered User
     
    Join Date: Aug 2003
    Posts: 17
    Persits software have an application called AspPDF http://www.asppdf.com that will do this.
    __________________
    Lee Firth
    Reply With Quote
      #6  
    Old 06-26-2007, 06:56 AM
    R Muruganandhan R Muruganandhan is offline
    Registered User
     
    Join Date: Jun 2007
    Posts: 2
    PDF create in ASP (Full version)

    It is Working fine - (Full version). No third party dll . Try this

    All the best
    Attached Files
    File Type: zip fpdf.zip (57.2 KB, 826 views)
    Reply With Quote
      #7  
    Old 06-26-2007, 08:43 AM
    Terrorke Terrorke is offline
    Registered User
     
    Join Date: Mar 2006
    Posts: 589
    Maybe this link is usefull :
    http://classicasp.aspfaq.com/compone...-from-asp.html
    Reply With Quote
      #8  
    Old 06-26-2007, 10:46 PM
    Bullschmidt's Avatar
    Bullschmidt Bullschmidt is offline
    Guru
     
    Join Date: Jan 2003
    Location: USA
    Posts: 688
    Quote:
    Originally Posted by R Muruganandhan
    It is Working fine - (Full version). No third party dll . Try this

    All the best
    Yes I agree with R Muruganandhan that http://www.fpdf.org is incredible in that an ASP page can create a .pdf file without using a component!
    __________________
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips
    Reply With Quote
      #9  
    Old 06-27-2007, 10:23 AM
    lmf232s's Avatar
    lmf232s lmf232s is offline
    Registered User
     
    Join Date: Jun 2004
    Location: Kansas City, MO
    Posts: 1,611
    This is the same things as fpdf but its a port with asp. While the fpdf works fine in PHP, working in asp might be more helpful.

    I have run this page through google translate because it was in a different language.

    http://translate.google.com/translat...spxnet%2eit%2f
    Reply With Quote
      #10  
    Old 11-21-2007, 01:10 AM
    R Muruganandhan R Muruganandhan is offline
    Registered User
     
    Join Date: Jun 2007
    Posts: 2
    Image Link for PDF in ASP

    <%@language=vbscript%>

    <!--#include file="fpdf.asp"-->
    <%
    ' Import class JScript in file VBScript
    Set pdf=CreateJsObject("FPDF")

    'Call Class file
    pdf.CreatePDF()

    'Set Path
    pdf.SetPath("fpdf/")

    'Set Font
    pdf.SetFont "Arial","I",16

    'Open PDF
    pdf.Open()

    ' Add document PDF
    pdf.AddPage()

    'pdf.Cell 80,10,"R Muruganandhan!"


    pdf.Image "Bharathi.jpg", 10, 10, 10, 10
    pdf.Link 10,10,10,10,"www.Google.com"
    'pdf.Image "News1.jpg", 10, 10, 10, 10
    'pdf.SetCreator "HIC-Prevalence-IDU.PDF"
    'pdf.LoadModels "Microsoft Word - EmailId.PDF"

    'pdf.write 100,"123"
    'pdf.Cell 40,10, "Name: " &amp; rs("Name")<br>
    'pdf.Ln(8)
    'pdf.Cell 40,10, "Age: " &amp; rs("Age")
    'pdf.MultiCell 80,110,"R Muruganandhan!"

    pdf.Cell 80,100,"R Muruganandhan!"
    pdf.Text 80,100,"Google!"
    pdf.Link 10,10,10,10,"www.Google.com"
    'Close
    pdf.Close()

    'output
    pdf.Output()

    pdf.Output server.mappath("list.pdf"),"T"
    %>


    Note : Download fpdf.Zip and modify in Main.asp
    Reply With Quote
      #11  
    Old 09-10-2008, 05:49 PM
    championc championc is offline
    Registered User
     
    Join Date: Aug 2006
    Posts: 46
    Using fpdf.asp, does anyone know how to setup a PDF output in Landscape format ?


    C
    Reply With Quote
      #12  
    Old 09-16-2008, 02:03 AM
    Bullschmidt's Avatar
    Bullschmidt Bullschmidt is offline
    Guru
     
    Join Date: Jan 2003
    Location: USA
    Posts: 688
    This is a page from the manual that explains how to set the orientation in PHP.

    http://www.fpdf.org | Click on Manual | Click on FPDF - constructor:
    <<
    FPDF
    FPDF([string orientation [, string unit [, mixed format]]])
    Description
    This is the class constructor. It allows to set up the page format, the orientation and the unit of measure used in all methods (except for font sizes).
    Parameters
    orientation
    Default page orientation. Possible values are (case insensitive):
    P or Portrait
    L or Landscape
    Default value is P.

    unit
    User unit. Possible values are:
    pt: point
    mm: millimeter
    cm: centimeter
    in: inch
    A point equals 1/72 of inch, that is to say about 0.35 mm (an inch being 2.54 cm). This is a very common unit in typography; font sizes are expressed in that unit.

    Default value is mm.
    format
    The format used for pages. It can be either one of the following values (case insensitive):
    A3
    A4
    A5
    Letter
    Legal
    or an array containing the width and the height (expressed in the unit given by unit).

    Default value is A4.
    Example
    Example with a custom 100x150 mm page format:
    $pdf = new FPDF('P', 'mm', array(100,150));
    >>

    And here's the page for ASP but it's in Spanish:
    http://www.aspxnet.it/public/Default...age=175&idp=51

    And here's a line of ASP code in my style of coding:
    objPdf.CreatePDF "L", "mm", "Letter" ' Landscape, inch, letter size.
    __________________
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips

    Last edited by Bullschmidt; 09-16-2008 at 02:13 AM.
    Reply With Quote
      #13  
    Old 09-18-2008, 06:23 PM
    championc championc is offline
    Registered User
     
    Join Date: Aug 2006
    Posts: 46
    Perfect thanks - all sorted

    Set pdf=CreateJsObject("FPDF")
    Pdf.CreatePDF "L", "mm", "A4"
    pdf.SetPath("fpdf/")

    etc.
    Reply With Quote
      #14  
    Old 10-31-2009, 07:10 AM
    zokanzi zokanzi is offline
    Registered User
     
    Join Date: Oct 2009
    Posts: 1
    Using fpdf.asp, does anyone know how to draw table with html code in my pdf document?
    Reply With Quote
      #15  
    Old 11-07-2009, 08:56 PM
    verikal verikal is offline
    Registered User
     
    Join Date: Nov 2009
    Posts: 17
    Is there a support for non latin UTF-8 Encoding ?
    (fpdf)
    __________________
    My web site...
    בניית אתרים
    אחסון אתרים
    English version will be added soon.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:34 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.