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
 Output from ImageEn to PowerPDF gets Pixellated
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
727 Posts

Posted - Feb 17 2016 :  01:14:36  Show Profile  Reply
Hello,

As I am not able to generate required formatted output using PDF feature of ImageEn...

I am using PowerPDF to generate PDF documents that contain text as well as many thumbnails of images. The size of Image control for PowerPDF is set to 100 width and height.

I am loading images programmatically using ImageEn.

Here is the download link to a sample PDF generated using PowerPDF.
https://www.dropbox.com/s/9uv23kqql7qr3c7/projectdetails.pdf?dl=0

Code snippet that I am using to load Image in PowerPDF Image Control
ieTemp.Proc.Resample(150, -1, TResampleFilter(0));
pdfImageR1C2.Picture.Assign(ieTemp.Bitmap);


Please help solve this problem. I have tried in every way to get better output but have not been able to get it.

TIA



Yogi Yang

rmklever

Norway
51 Posts

Posted - Feb 17 2016 :  09:14:48  Show Profile  Reply
Hi,

I have done almost the same... have a look at my pdf

http://1drv.ms/20Zaxxx


I am using PrintPreview: http://www.delphiarea.com/products/delphi-components/preview/

And SynopsePDF: http://www.synopse.info/fossil/wiki?name=PDF+Engine


I think it is quite easy to get what you want using this combination

SynopsePDF is MPL lisenced



Roy M Klever
Klever on Delphi - www.rmklever.com
Go to Top of Page

xequte

38611 Posts

Posted - Feb 17 2016 :  20:51:28  Show Profile  Reply
Hi Yogi

I know nothing about PowerPDF, so I think you would be better to ask the question of them.

Looking at the PDF you supplied the images are not being displayed with the correct aspect ratio. They are stretched to display so will naturally look blurry. If PowerPDF does not have an option to maintain AR, then you might need to artificially add borders to your image before assigning it to PowerPDF (after resampling use Proc.ImageResize).

Also, you are not using a resample filter with Proc.Resample, you should at least use something like rfFastLinear.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

yogiyang

India
727 Posts

Posted - Feb 20 2016 :  02:26:23  Show Profile  Reply
Hello Roy,

 
I have done almost the same... have a look at my pdf

http://1drv.ms/20Zaxxx


I am using PrintPreview: http://www.delphiarea.com/products/delphi-components/preview/

And SynopsePDF: http://www.synopse.info/fossil/wiki?name=PDF+Engine


I think it is quite easy to get what you want using this combination



I have tried my hands on SynopsePDF but is does not give the required flexibility. I tried to ask question on the official forum but never replied any worth while reply.

In fact I feel that SynopsePDF is immature and has many missing features.

Anyway, Thanks for your inputs.

I will try our Nigels suggestion also and see if I can resolve this issue.

TIA




Yogi Yang
Go to Top of Page

yogiyang

India
727 Posts

Posted - Feb 25 2016 :  09:21:20  Show Profile  Reply
Hello Roy,

 
I am using PrintPreview: http://www.delphiarea.com/products/delphi-components/preview/

And SynopsePDF: http://www.synopse.info/fossil/wiki?name=PDF+Engine

Can you share some code show as to how you have used PDF Engine - SynopsePDF.

I tried but could not get it to place images as I wanted so had to adopt PowerPDF.

TIA



Yogi Yang
Go to Top of Page

rmklever

Norway
51 Posts

Posted - Feb 25 2016 :  13:02:53  Show Profile  Reply
Hi Yogi,

I am using the PrintPreview component to render the pages. The PrintPreveiw component can be setup to use SynopsePDF engine and save the pages as a PDF.

So I am not using SynopsePDF engine directly. Working with PrintPreview is not that hard and I can send you my contact sheet component if you need some sourcecode to get started.

If you can render your page as TMetatfile I belive you can use SynopsePDF to save it as a PDF.


Roy M Klever
Klever on Delphi - www.rmklever.com
Go to Top of Page

yogiyang

India
727 Posts

Posted - Feb 26 2016 :  00:51:53  Show Profile  Reply
Hello Roy,

Please do share your component it will give me some ideas as to how to proceed and solve my problems.

TIA


Yogi Yang
Go to Top of Page

rmklever

Norway
51 Posts

Posted - Feb 28 2016 :  09:04:35  Show Profile  Reply
Hi Yogi, I just sent you the component

Roy M Klever
Klever on Delphi - www.rmklever.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: