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 February 14th, 2007, 12:33 PM
j2quan j2quan is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
j2quan is an unknown quantity at this point
Default Rotate factor property

I noticed that the rotate factor property (per page i assume) if available in the ActiveX version, but not the DLL version. Are there any plans to have a function export become available in the DLL version for this?
Reply With Quote
  #2  
Old February 25th, 2007, 04:43 PM
AmyLin AmyLin is offline
Moderator
 
Join Date: Feb 2007
Posts: 92
AmyLin is an unknown quantity at this point
Default

the dll version has the rotate factor property ,too.

PDF pages can be displayed upright like it is, or, it can be rotated in both direction (clockwise or counter-clockwise), or it can be displayed upside-down. To achieve different rotation display, you just need to adjust the rotate parameter when you call FPDF_RenderPage function.

void FPDF_RenderPage(HDC dc, FPDF_PAGE page, int start_x, int start_y, int size_x, int size_y, int rotate, int flags);

The rotate parameter can be 0, 1, 2, or 3. Use 0 for displaying not rotated, 1 for rotated (90 degrees) clockwise, 2 for upside-down, 3 for rotated (90 degrees) counter-clockwise.

The following example shows how you can rotate the page clockwise:

FPDF_RenderPage(hDC, pdf_page, 10, 10, size_x, size_y, 1, 0);
Reply With Quote
  #3  
Old February 28th, 2007, 10:14 AM
j2quan j2quan is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
j2quan is an unknown quantity at this point
Default

Sorry, my initial post was unclear. What I meant was that the PDF standard allows for certain tags to be written to the file. (ie. Rotate, MediaBox, etc..) So if you open a PDF file in a text editor you will see these tags for each page in the document, example:

/MediaBox [0 0 612 792]
/Rotate 0

What I need are function exports to retreive these values as they are important in rendering the document properly under some circumstances. Is this functionality actually available somewhere? or am I left to parse the entire PDF file and compile a list of tags and values?
Reply With Quote
  #4  
Old July 9th, 2008, 07:37 AM
housemen housemen is offline
Junior Member
 
Join Date: Jul 2008
Posts: 1
housemen is an unknown quantity at this point
Default

The Rotate Data operation allows you to rotate the data within the visualization by a specified number of degrees without affecting the rest of the data space (graphical objects and axes). Thanks








-----------------------------
real estate new london ct , real estate groton ct , real estate waterford ct
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:32 AM.


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