473,395 Members | 1,595 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,395 software developers and data experts.

pdfLib create_pvf

1
I'm having trouble creating multiple PVF files.

It works with a single operKey, but not with multiple operKeys, the careQuery.php below goes to a database and pulls out a blob photo.

Can anyone give me a clue?
Expand|Select|Wrap|Line Numbers
  1. $p->begin_document ( "", "" ) ;
  2. for ( $k = 0; $k <= 3; $k += 1) {
  3.    $p->begin_page_ext ( $pagewidth, $pageheight, "" );
  4.    $operKey = '10019152';
  5.  
  6.    /*  This is commented out 'cause it doesn't work
  7.    if ($k=0)
  8.    $operKey = '10019152';
  9.    if ($k=1)
  10.     $operKey = '10000431';
  11.    if ($k>1)
  12.     $operKey = '10017721';
  13.    */
  14.  
  15.    include './cardQuery.php';
  16.  
  17.    //Create PDF Virtual File (PVF)
  18.    $pvf_filename = "/var/www/html/jops/" . $operKey . ".jpg";
  19.    $p->create_pvf($pvf_filename,$picture,"");
  20.    $image2 = $p->load_image("jpeg", $pvf_filename, "");
  21.    $p->fit_image($image2, 160,70,
  22.          "boxsize={65 70} position={left top} fitmethod=meet");
  23.    $p->delete_pvf($pvf_filename);
  24.    $p->end_page_ext ( "" );
  25.  
  26. }
  27. $p->end_document ( "" );
Feb 4 '09 #1
0 1731

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

Similar topics

2
by: Randell D. | last post by:
Folks, I've read the PHP online help file and I believe the ClibPDF functionality is seperate, but similar to the PDFlib version - What is the difference? Why would one use one, instead of the...
2
by: bonehead | last post by:
Greetings, Apologies in advance for the crosspost. I would like to determine if the PDFlib library has been installed on a shared server which I do not administer. Is there a command I can run...
0
by: ian douglas | last post by:
Hey all, Anyone have a wraper written as a drop-in replacement for PDFlib? That is, use their function names, parameters, pretty much identically? I'm making some slight modifications to an...
0
by: acorn71 | last post by:
Hello, Are there advantages to using PDFlib over FPDF? My employer has purchased a license to PDFlib but I wanted to know if FPDF is a better overall choice. I'm specifically referring to any...
0
by: Rul | last post by:
i have to build pdf files from tiff in a visual basic application, so i downloaded http://download.devparadise.com/pdflib-2.01.zip pdflib's 2.01 source to make the visual basic bind, but the vb...
0
by: Jeff_M | last post by:
I asked my web hosting company to install PDFlib so that I could create, just very simple dynamic pdfs. (using PHP5) They said it is installed. When I call phpinfo(), I see this . Configure...
2
by: Nader Emami | last post by:
L.S., Would somebody help me about PDFlib using? I am a user of a Linux machine (not root) and I have installed PDFlib somewhere in my home directory. So I can't change the '/etc/php.ini' file....
0
by: seth.northrop | last post by:
Hi, I get this error with the new PHP PDF Binaries: http://pecl.php.net/bugs/bug.php?id=9491&edit=1 And I've attempted to do the workaround (install a newer PDFLib binary). That fixes the...
1
by: sanjeev1984chadha | last post by:
Hi I am facing trouble in calling PDFlib class i have a file called "export.php"and while running it from command prompt i get an error Fatal error: Class 'PDFlib' not found in...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.