Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Blank pages in PDF document when converting from other file formats
Started by Josindenbos at 03-14-2007 5:39. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  03-14-2007, 5:39
Josindenbos is not online. Last active: 4/15/2008 4:04:07 PM Josindenbos

Not Ranked
Joined on 02-19-2007
Posts 3
Blank pages in PDF document when converting from other file formats

Attachment: PDF Compressor.zip
Reply Quote

Hi,

I'm using the PDF compressor and LeadTools Document Imaging v.14.5 with Visual Basic 6.0 on a Win 2000 machine.

When I convert one or more pages to PDF, they appear as blank pages in Adobe Reader/Foxit reader. This problem occurs even in the included demo application, when running in debug mode. When running in compiled mode, this seems to be going ok on my development machine, but once again, when installed on a client machine, even the compiled version is generating blank pages.

A second problem is that the PDF Compressor (PDFCompFree) is not releasing any memory, the added pages are kept in memory resulting in a message 'Virtual memory too low' in Windows (I've checked the task manager also, it keeps increasing memory until OS crashes).

The number of pages displayed in Adobe reader is correct.

Included is a test application, which I created in order to track down the problem.

I already have sent this issue to Lead support, but with no response so far.

Has anybody seen this behavior before and did you find a solution to this problem? Any help would be greatly appreciated, as I'm looking for an answer for over two weeks now.

Thanks in advance

 


   Report 
  03-19-2007, 8:41
GregR is not online. Last active: 11/17/2008 11:10:19 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,706
Re: Blank pages in PDF document when converting from other file formats

Attachment: COM - V145 - Advanced PDF Compressor.zip
Reply Quote
This is a problem with the demo itself, not the COM object.  This problem has been reported with the incident number 5528IDT.

I have attached a simple sample project which successfully uses the PDF compressor in VB.

Greg Ross
LEADTOOLS Technical Support
   Report 
  04-11-2008, 7:40
Josindenbos is not online. Last active: 4/15/2008 4:04:07 PM Josindenbos

Not Ranked
Joined on 02-19-2007
Posts 3
Re: Blank pages in PDF document when converting from other file formats

Attachment: test.pdf
Reply Quote

Hi Greg,

We've downloaded the sample application you attached to this post, but when we run this application on a development machine or production machine, we still get blank PDF files (with the license codes for PDF_READ, PDF_SAVE, PDF_ADVANCED and DOCUMENT filled in and the nonag dll's).

The pages in the generated PDF file are just blank, as if they weren't attached to the PDF (even though the size seems correct). The PDF engine is copied to the system32 directory and the registry is pointing to the correct location. The functions return codes are all 0. The development machine has the complete toolkit installed from CD and we applied the latest patches for document imaging, but not yet for the PDF engine (are there any patches available ?)

I've attached a new sample document, which is the result...

Strange thing is : when I use the evaluation DLL's on a different machine I don't get blank PDF's and everything works just fine.

Any ideas what I might be doing wrong here ?

Thanks in advance,

Davy

 


   Report 
  04-14-2008, 9:24
GregR is not online. Last active: 11/17/2008 11:10:19 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,706
Re: Blank pages in PDF document when converting from other file formats
Reply Quote
It's been a very long time since I posted that, but I checked it on my end again and it still works just fine.

Did you change anything else in this project other than adding the unlock codes?

What is the build number of ltr14n.dll that you're using?

What is the version number of Pdfdll32.dll that you're using?

Does this happen with all files or only some?  Try using Image1.cmp that ships with the toolkit so we can be on the same page.  If that DOES work, then send me the file you're trying to add to the PDF compressor.

If it works on one machine but not another, the problem is likely in your DLLs.  Do you have any other versions of LEADTOOLS on your machine like v13?

Greg Ross
LEADTOOLS Technical Support
   Report 
  04-17-2008, 16:34
Josindenbos is not online. Last active: 4/15/2008 4:04:07 PM Josindenbos

Not Ranked
Joined on 02-19-2007
Posts 3
Re: Blank pages in PDF document when converting from other file formats
Reply Quote

Hi,

Thanks for the reply. I've got some more info on this issue.

First of all, to answer your questions :

We didn't make any changes to the test project (apart from the unlock codes), we've also tried with the image1.cmp, but with no luck. Only Leadtools 14.5 is installed, there are no other versions of Leadtools on those machines.

The version numbers are :

Windows 2000 (SP4)

Visual Basic 6 (SP5/SP6):

Visual SourceSafe 6a (8987)

Pdfdll32.dll : v. 8.53.0.0

ltr14n.dll : v.14.5.0.013

We've discovered that the problem appears when using Visual Studio and the Visual Source Safe Plugin (Add in in VB 6 (VB6.dll in System32)).

If we run just the executable of the demo app, everything works fine. When we run the VB6 project from within VB6, everything works if the Visual Source Safe add in is not loaded. When we run the VB6 project from within VB6 with the Visual Source Safe add in loaded into memory, blank pages are generated in the PDF.

It seems as if the source safe addin uses another system or shared DLL other than the one the PDF dll's use when running the executable. Are there any specific dll's other than the leadtools dll's (and the PDF folder + registry entry and pdfdll32.dll) the PDF compressor needs to run correctly ?

We already tried with service pack 5 and service pack 6 of VB6. We've also tried using the latest Leadtools patches. (downloaded about 2 weeks ago) and did a registry scan to check for corrupt entries.

We cannot deactivate the source control feature in VB6 to resolve this issue, since the rest of the application is also under source control and company policy prohibits otherwise.

Is there any way to get around this ?

Thanks for the help !


   Report 
  04-18-2008, 10:53
GregR is not online. Last active: 11/17/2008 11:10:19 AM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,706
Re: Blank pages in PDF document when converting from other file formats
Reply Quote
I've never heard of this happening, and I'm not very familiar with using VSS 6 along with VB6.

What happens when you actually compile the EXE?  This is probably more important in the long run than it being able to run through your compiler.

Are you getting any errors in your application?  Keep in mind that most of the COM functions give a return value and might not necessarily throw an error message.  Make sure you are checking the return codes for any functions that return them because an error might be occuring without getting handled and reported properly.

The PDF engine may not be finding the dlls it needs when VSS is open if you've stored your binaries in VSS as well as the code.  Have you tried using the ILEADRasterIO.PDFInitDir property?  This should point to where all of your PDF engine dlls are located.  For more information about the PDF engine, the files it requires, and how to configure it to work properly on your machine, take a look at the help file article "Implementing PDF Plug in Features".

Your dlls are pretty old, but since it works without VSS but doesn't with it, I doubt it's the problem.  If you want to get a patch anyways, please send an email to support@leadtools.com in order to get the download instructions for the latest patch.  For verification purposes, I need you to include the following information:
 
1. The company you work for
2. The LEADTOOLS serial number(s) you own (if you are evaluating, just say so and we'll send you the eval patch)
3. The name(s) of the developer(s) using the serial number
4. A link to this forum post

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » PDF » Re: Blank pages in PDF document when converting from other file formats

Powered by Community Server, by Telligent Systems