ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageEn 8.1.2 and WPCubed
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pmurawski

Poland
9 Posts

Posted - Nov 28 2018 :  13:37:44  Show Profile  Reply
I bougth a plugin for IE, add module to uses and line as bellow to the Form Create:
---------------------------------------
if TIEWPCubedPDF.Initialize then
  begin
     TIEWPCubedPDF.RegisterPlugin;
     PDFPluginInitialized:= TIEWPCubedPDF.IsAvailable();
  end;

---------------------------------------
PDFPluginInitialized is finally true, but when I try to load a pdf file to the ImageENMView:
-------------------------------------------
if OpenDialog1.Execute then
    begin
      ImageEnMView1.Clear;
      ImageEnMView1.MIO.LoadFromFilePDF( OpenDialog1.FileName );
      if ImageEnMView1.ImageCount>0 then
        begin
          ImageEnMView1.SelectedImage := 0;
          ImageEnMView1.CopyToIEBitmap( ImageEnMView1.SelectedImage, ImageEnView1.IEBitmap );
          ImageEnView1.Update();
        end;
    end;


I got an exception: "Unexpected parameters for pdfMakeImageExt".
Do You suggest what I made wrong?

Piotr Murawski

xequte

38616 Posts

Posted - Nov 28 2018 :  17:11:51  Show Profile  Reply
Hi Piotr

WP Tools PDF support is working fine when I test it here.

Are you able to reproduce this in the demos that came with the WPTools install?

Does it happen with all PDF files?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pmurawski

Poland
9 Posts

Posted - Nov 28 2018 :  17:28:33  Show Profile  Reply
Hi Nigel,

I try to read different kind of PDF with the WPViewPDF V4 MKIMG extension and every time event was the same. I try to do this in the demos- I bought it yesterday so, may be is something new in that version.

All the best
Piotrek

Piotr Murawski
Go to Top of Page

xequte

38616 Posts

Posted - Nov 28 2018 :  18:10:34  Show Profile  Reply
Hi Piotr

Are you saying it worked in a previous version of ImageEn? If so, what version was that?

There should be no changes to the PDF handling via WP Tools for several versions.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pmurawski

Poland
9 Posts

Posted - Nov 29 2018 :  01:41:17  Show Profile  Reply
Hi, I reproduce the same error on a demo app distributed with the WPViewPDF files named WPPDF_Multi. The error comming from wpcubed_pdf_plugin:

res := wpcubed_pdfMakeImageExt(
InStream,
OutStream,
PWideChar(filename),
@PageCount,
PWideChar(password),
PWideChar(WideString(glWPViewPDF_LicName)),
PWideChar(WideString(glWPViewPDF_LicKey)),
glWPViewPDF_LicCode,
PWideChar(os),
IOParams.ImageIndex+1,
IOParams.ImageIndex+1,
ImageResolution,
0 );
except
res := -1;
end;

A the end res value is -2 so finally event PDFException.Create('Unexpected parameters for pdfMakeImageExt') is rased.

Version: No, I check the WPVIEW only with IE 8.1.2 but maybe somethink has been changed in the plugin when they create wPDFViewMKIMG04.dll
I will made my investiogation :) too.
Thank You
Piotrek

Piotr Murawski
Go to Top of Page

wpsupport

Germany
7 Posts

Posted - Nov 30 2018 :  03:12:56  Show Profile  Reply
Please send your question to
support@wptools.de

Did you provide your license data in the call to the function?

WPCubed Support
Go to Top of Page

pmurawski

Poland
9 Posts

Posted - Nov 30 2018 :  03:55:11  Show Profile  Reply
Ok, i will send it. Yes, i did (license information)

Piotr Murawski
Go to Top of Page

pmurawski

Poland
9 Posts

Posted - Nov 30 2018 :  11:18:27  Show Profile  Reply
SOLVED! It was finally my mistake ... the license key started from '=' :).
Thank You All
Piotek


Piotr Murawski
Go to Top of Page

xequte

38616 Posts

Posted - Nov 30 2018 :  17:03:13  Show Profile  Reply
Thanks for the update, Piotr

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: