NetTalk Central

Author Topic: NTWS - Printing PDF with Image..part 2  (Read 4286 times)

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
NTWS - Printing PDF with Image..part 2
« on: November 03, 2011, 03:43:41 PM »
I don't know what the problem is but I cannot view the other thread when I'm logged in to NetTalkCentral.  Weird.

Anyway, I have tried everyone's suggestion to no avail. 

I noticed a reference to an object labeled "?draw."  Is this a standard SV image control renamed to ?draw or is this another control?  Maybe a Capesoft's Draw control?

Thanks,

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Stu

  • Hero Member
  • *****
  • Posts: 509
    • View Profile
    • Email
Re: NTWS - Printing PDF with Image..part 2
« Reply #1 on: November 03, 2011, 07:55:33 PM »
Don,

Yes, it was a Capesoft Draw reference (in my code, not sure about others).

I use Draw + FreeImage controls on my reports (which go to pdfs). It's the best way I've found thus far, and works fine with PDFTools.
Cheers,

Stu Andrews

Stu

  • Hero Member
  • *****
  • Posts: 509
    • View Profile
    • Email
Re: NTWS - Printing PDF with Image..part 2
« Reply #2 on: November 04, 2011, 01:29:48 AM »
Don,

Apparently you might have some joy with changing from a JPG to a GIF. Bruce has heard of someone doing this (he can't reply to the thread, perhaps for the same reason as you) with success.
Cheers,

Stu Andrews

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: NTWS - Printing PDF with Image..part 2
« Reply #3 on: November 04, 2011, 02:18:20 AM »
You are on to something.  Decided to try out a GIF instead of a JPG.  The GIF worked perfectly.  So, I know my image code works.  But, it sure would be nice to be able to use JPG's.

Thanks,

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: NTWS - Printing PDF with Image..part 2
« Reply #4 on: November 04, 2011, 05:20:52 AM »
>> But, it sure would be nice to be able to use JPG's.

that would appear to be a Clarion question, not a NetTalk question.

cheers
Bruce


terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: NTWS - Printing PDF with Image..part 2
« Reply #5 on: November 04, 2011, 07:13:05 AM »
Don
Yes I use CapeSoft Draw but
?Image1{PROP:Text} = 'web\client\client.jpg' works for me just as well.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: NTWS - Printing PDF with Image..part 2
« Reply #6 on: November 04, 2011, 04:36:44 PM »
Yep.  I think you're right Bruce.  I'll do some additional testing in a Win32 app to see if JPG's are an issue there as well.  I have a funny feeling they very well may be an issue that's no one has reported yet.

We shall see...

Thanks y'all!

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: NTWS - Printing PDF with Image..part 2
« Reply #7 on: November 05, 2011, 10:47:43 AM »
JPG's are displaying properly in PDF's on the Win32 side.  So at this point I'm just about out of ideas.

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: NTWS - Printing PDF with Image..part 2
« Reply #8 on: November 06, 2011, 10:51:30 PM »
ok on the Win32 side _after_ converting to PDF? Not just in the report...

cheers
Bruce

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: NTWS - Printing PDF with Image..part 2
« Reply #9 on: November 07, 2011, 06:19:36 AM »
In Win32 side..converts to PDF fine and displays JPG fine...

NetTalk..converts to PDF fine but does not display JPG.

Thanks,

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: NTWS - Printing PDF with Image..part 2
« Reply #10 on: November 08, 2011, 06:49:53 AM »
My apologies to all...

The PDF will generate AND the JPG will display but..it takes a very long time to generate the PDF.

I thought that the generation time may be related to the size of the JPG file.  But, the image file I tested is only 250k.  That is not very large.  

EDIT:  Okay - Images only seem to display if I use LONGPATH() & '\web\' & clip(IMA:ImagePath).

But it is hit and miss.  Sometimes they display but mostly the browser times out.

Frustrating...

Don
« Last Edit: November 08, 2011, 07:01:32 AM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: NTWS - Printing PDF with Image..part 2
« Reply #11 on: November 08, 2011, 08:21:35 AM »
Seems NetTalk 5.40 does not like the generation of a SV-PDF with a JPG image file.  

GIF's perform flawlessly every time.  JPG's, not so much.

I wonder if there is a way to convert JPG's to GIF's when the image is uploaded?

Thanks,

Don
« Last Edit: November 08, 2011, 03:37:05 PM by DonRidley »
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: NTWS - Printing PDF with Image..part 2
« Reply #12 on: November 08, 2011, 10:15:50 PM »
I'm gonna make a small tweak to 5.41 - I'll be interested to know if that makes a difference.

Also
>> But it is hit and miss.  Sometimes they display but mostly the browser times out.

If you are using the built-in Clarion PDF converter then you should see the "converting to PDF" screen that appears. Can you tell me approximately how long after the report starts it appears, and how long it displays for. I don't need an exact value - using a normal watch to time it is fine.

cheers
Bruce

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: NTWS - Printing PDF with Image..part 2
« Reply #13 on: November 08, 2011, 10:35:49 PM »
also...

how _big_ is the PDF file being generated? not just how many pages, but the actual file size?

cheers
Bruce