How to rotate some pages of the PDF file 90 degrees to create a jpg file?

Hello,

I made a payment using the link you provided a few days ago.
After payment, I received an email as shown below.
I get an error when I click the key link. (Refer to the attached file)

How do I use the key attached to the email?

Also, there is one more inquiry on how to use it.

We have to rotate some pages of the PDF file 90 degrees to create a jpg.

Should I do this separately, as shown below?

How can I work at once?

$returned_content = get_data('http://online.verypdf.com/api/?
apikey=XXXX-XXXX-XXXX-XXXX&app=pdftoolbox
&infile=http://online.verypdf.com/examples/cloud-api/verypdf2.pdf
&outfile=out.pdf&cat=1-2');

$returned_content2 = get_data('http://online.verypdf.com/api/?
apikey=XXXX-XXXX-XXXX-XXXX&app=pdftools
&infile=http://online.verypdf.com/examples/cloud-api/verypdf2.pdf
&outfile=out.jpg&-r=150&-rotate=-90');

Customer
-------------------------------
Thanks for your message, your PHP code is not problem, I tried following URLs, they worked fine,

http://online.verypdf.com/api/?apikey=XXXX-XXXX-XXXX-XXXX
&app=pdftoolbox
&infile=http://online.verypdf.com/examples/cloud-api/verypdf2.pdf
&outfile=out.pdf&cat=1-2

http://online.verypdf.com/api/?apikey=XXXX-XXXX-XXXX-XXXX
&app=pdftools
&infile=http://online.verypdf.com/examples/cloud-api/verypdf2.pdf
&outfile=out.jpg&-r=150&-rotate=-90

You can use get_data() PHP function to call above URLs from your PHP source code, for example,

<?php
//The Code
/* gets the data from a URL */
function get_data($url)
{
    $ch = curl_init();
    $timeout = 5;
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $data = curl_exec($ch);
    curl_close($ch);
    return $data;
}

//The Usage
$returned_content = get_data('http://online.verypdf.com/api/?
apikey=XXXX-XXXX-XXXX-XXXX&app=pdftoolbox
&infile=http://online.verypdf.com/examples/cloud-api/verypdf2.pdf
&outfile=out.pdf&cat=1-2');
echo $returned_content;
?>

If you encounter any problem with this PHP code, please send to us the detailed error message, we will check the error message and come back to you asap.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!