Word count functionality

Hi,


I was wondering if the PDF word count functionality is compatible with PHP systems? we have a bespoke CI PHP website and would like to integrate with the aspose software.

regards

Hi Gerry,

Thank you for your inquiry and sharing details.

Yes, Aspose.Pdf for Cloud words count per page functionality is compatible with PHP. Please find below code snippet to get words count per page

// Upload file to Aspose Cloud Storage

$fileName = "input.pdf";

Utils::uploadFile($fileName);

$result = $this->pdf->GetWordsPerPage($fileName, $storage = "", $folder = "");

print_r ( $result );

You can also use our swagger link to test words count functionality and to check list of all the supported methods. Please follow below steps to generate signature and test the words count functionality

1- Open URL Aspose.Pdf Cloud - API References.

2- Enter your App Key and App Sid in right top corner.

3- Enter input document name like http://prntscr.com/eprh4h.

4- Click Try it out button.

5- It will return you the result like http://prntscr.com/eprhot.

You can also use our Github link to test testGetWordsPerPage unit test case. Here is GitHub link https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-php/blob/master/tests/Aspose/PDF/PdfApiTest.php#L4852

We will also add example in our docs.

I hope this helps. If you have any further questions, please feel free to share.

Thanks,

Naeem Akram
Aspose - File Format APIs.
Got a Complaint? File it!
Keep in touch! We’re on Twitter and Facebook

Thats great. Thanks for that. Very useful. We will take a look now