Foxit Corporation Forums  

Go Back   Foxit Corporation Forums > Portable Document Format (PDF) Tools > SDK ( DLL or ActiveX)

SDK ( DLL or ActiveX) Integrate PDF functions into your application easily. The SDK shares the same technology that powers Foxit Reader.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 28th, 2007, 09:38 AM
NMIMT85 NMIMT85 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 2
NMIMT85 is an unknown quantity at this point
Default Printing Differs Between Reader and Foxit DLL

I'm using your demo download to evaluate the Foxit Reader DLL SDK. I'm seeing a difference in print outs between printing from Adobe Reader and the Foxit DLL. The Foxit DLL places blocks of text either lower or higher (some blocks are too low, some blocks are too high) than Adobe and also positions blocks in different horizontal locations than Adobe (some blocks are slightly to the left, some are slightly to the right). Finally, the DLL "squishes" lines of text. Even accomodating for the horizontal shift, lines of text printed by the DLL are slightly shorter than lines of text printed by Adobe. It looks like the characters are the right size, but the DLL has a different idea of the kerning between the letters. The intraword spacing seems to be OK.

We'd really like to use Foxit as an alternative to Adobe Reader. We've got several hundred mobile devices (which fall somewhere between a handheld PC and a laptop) in the field that are used to print window stickers for automotive dealerships, and the lightweight footprint of the Foxit DLL is very attractive. But text placement is very critical on these window stickers and we need true fidelity between the PDF and the printout.

Is this erroneous text placement a function of the demo version of the DLL, or am I calling it incorrectly? I've printed from both the VB demo download (ReaderVB) and from a C# app I threw together, with different results from both. The Renderpage call in your VB Demo program is

FPDF_RenderPage Printer.hDC, PrintPage, 0, 0, Printer.ScaleWidth, Printer.ScaleHeight, 0, 0

and the Renderpage call I'm using in my C# app is

int size_x = (int)(ev.PageSettings.PaperSize.Width/100 * ev.Graphics.DpiX);
int size_y = (int)(ev.PageSettings.PaperSize.Height/100 * ev.Graphics.DpiY);
Foxit.FPDFView.FPDF_RenderPage(ev.Graphics.GetHdc( ), pdf_page, 0, 0, size_x, size_y, 0, 0);

where ev is a PrintPageEventArgs variable supplied by C# when the Print event is fired from a System.Drawing.Printing.PrintDocument object.


Mary McClure
Software Engineer
Kelley Blue Book
The Trusted Resource
www.kbb.com
Reply With Quote
  #2  
Old November 28th, 2007, 04:36 PM
william's Avatar
william william is offline
Foxit Developer
 
Join Date: Dec 2005
Posts: 192
william is a glorious beacon of lightwilliam is a glorious beacon of lightwilliam is a glorious beacon of lightwilliam is a glorious beacon of lightwilliam is a glorious beacon of lightwilliam is a glorious beacon of light
Default

Hi Mary,

Thank you for reporting the problem to us.
Our development team is invetigating the problem now.
Once we get a solution or an answer, we will let you know.
Reply With Quote
  #3  
Old November 29th, 2007, 09:37 AM
NMIMT85 NMIMT85 is offline
Junior Member
 
Join Date: Nov 2007
Posts: 2
NMIMT85 is an unknown quantity at this point
Default

I'd be happy to send you a sample of our PDF, if you tell me where to send it.
Reply With Quote
  #4  
Old November 29th, 2007, 02:38 PM
Erik_Bryant Erik_Bryant is offline
Sales/Marketing
 
Join Date: May 2007
Posts: 533
Erik_Bryant has a reputation beyond reputeErik_Bryant has a reputation beyond reputeErik_Bryant has a reputation beyond reputeErik_Bryant has a reputation beyond reputeErik_Bryant has a reputation beyond reputeErik_Bryant has a reputation beyond reputeErik_Bryant has a reputation beyond reputeErik_Bryant has a reputation beyond reputeErik_Bryant has a reputation beyond reputeErik_Bryant has a reputation beyond reputeErik_Bryant has a reputation beyond repute
Default

Hello Mary,

You can send the sample file to support@foxitsoftware.com and let them know to send it along to William. Thanks.
-Erik Bryant
Reply With Quote
  #5  
Old April 13th, 2008, 01:10 PM
JasonGawker JasonGawker is offline
Junior Member
 
Join Date: Apr 2008
Posts: 1
JasonGawker is an unknown quantity at this point
Default Hey

Hi,

Yep, I stumbled upon that problem too, thanks for pointing it out and it's nice the development team is onto it now. I think that problem doesn't occur in Adobe Reader, so I suggest trying that when Foxit fails, as a temporary solution of course.

Jason
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:54 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
©2005-2008 Foxit Corporation. All rights reserved.