Check boxes do not save to pdf correctly

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
jimmaguire
Posts: 206
Joined: Thu Sep 15, 2005 1:41 am
Location: California

Check boxes do not save to pdf correctly

Post by jimmaguire »

They are misaligned and look like an "e". I used your ThirdParty/MakePDF to do the test. I just added the RegisterClasses([TCheckBox]) in initialization. I have sent the rvf I used to test with in a separate email.
proxy3d
ScaleRichView Developer
Posts: 307
Joined: Mon Aug 07, 2006 9:37 am

Re: Check boxes do not save to pdf correctly

Post by proxy3d »

add when making Metafile
Result.Enhanced := True; // format EMF

By default Enhanced = False, and metafile is created in old format (WMF).


function TfrmMakePDF.MakePageMetafile(PageNo, Width, Height: Integer): TMetafile;
begin
Result := TMetafile.Create;
Result.Width := Width;
Result.Height := Height;
Result.Enhanced := True;
srve.DrawPage(PageNo, Result, cbPageNoVisible.Checked, cbClipMargins.Checked,
False);
end;

in the next update, ScaleRichView will assign Enhanced = True by itself
jimmaguire
Posts: 206
Joined: Thu Sep 15, 2005 1:41 am
Location: California

Problem not fixed

Post by jimmaguire »

I just downloaded the most recent TSRichViewEdit and demos. I checked that Enhanced = true, which is now the default, but set it anyway. I used your MakePDF demo and the resulting PDF still had what looks like the letter "e" instead of the checkboxes. The strange thing is that I believe your demo worked a month ago when you first posted the reply, but I could not make my code work. I thought I'd try again and now your demo does not work.

I've sent a sample rvf and the resulting pdf and the MakePDF project in a separate email.
Sergey Tkachenko
Site Admin
Posts: 17267
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

May be you compiled your projects with older version of ScaleRichView somehow?
Please test this compiled demo:
http://www.trichview.com/support/files/ ... alepdf.zip
jimmaguire
Posts: 206
Joined: Thu Sep 15, 2005 1:41 am
Location: California

Demo worked fine - think its IIPDFLIB

Post by jimmaguire »

I have not been able to upgrade IIPDFLib since June 23, 2005 when I bought it, never get a response from them. Trying again today, I see they have several upgrades, but I can't get to them.

I have compiled TSRichView, the speed improvements are obvious.

If you have a way of getting to IIPDFLIb, please let them know I never get a response. I post emails via their website, but nothing comes back.
Sergey Tkachenko
Site Admin
Posts: 17267
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I send your request to them.
jimmaguire
Posts: 206
Joined: Thu Sep 15, 2005 1:41 am
Location: California

Recent version of IIPDFLIB solved problem

Post by jimmaguire »

Thanks!
Post Reply