RemoteDestination Class Documentation
class RemoteDestinationNamespace:datalogics_interface
Detailed Description
A view of a page contained in a separate document.
A RemoteDestination is not the same as a ViewDestination; the two objects are not interchangeable.
Referenced by
Constructor & Destructor Documentation
RemoteDestination
RemoteDestination(Document & doc, int page_number, const std::string & fit_type, const Rect & rect, double zoom)Parameters
doc: Document &Document that the RemoteDestination will be created in.
page_number: intPage number of the page in the remote document to display.
fit_type: const std::string &Fit Type must be: "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", or "FitBV".
rect: const Rect &Target Rectangle
zoom: doubleZoom level
Construct a RemoteDestination.
RemoteDestination
RemoteDestination(RemoteDestination && )Parameters
~RemoteDestination
~RemoteDestination()Field Documentation
null_value
static null_valueConstant used for "null" values in destination rectangles or zoom.
Member Function Documentation
get_dest_rect
Rect get_dest_rect()Returns:
RectThe rectangle defining the area of the page to display. Fields not applicable to the current fit type will contain NullValue.
The destination rectangle.
get_fit_type
std::string get_fit_type()Returns:
std::stringThe fit type string (e.g., "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", or "FitBV").
The fit type for the destination.
get_page_number
int get_page_number()Returns:
intThe zero-based page number for this destination in the remote document.
The page number of the destination.
get_pdf_object
std::unique_ptr< PDFObject > get_pdf_object()Returns:
std::unique_ptr< PDFObject >The underlying PDFObject for this RemoteDestination.
Retrieve the PDFObject representation of this Remote Destination.
get_zoom
double get_zoom()Returns:
doubleThe zoom level for the destination, or NullValue if not specified.
The zoom factor for the destination.
operator=
RemoteDestination & operator=(RemoteDestination && )Parameters
Returns:
RemoteDestination &operator==
bool operator==(const RemoteDestination & other)Parameters
other: const RemoteDestination &The RemoteDestination to compare against.
Returns:
booltrue if the two RemoteDestination objects refer to the same underlying PDF object, false otherwise.
Tests whether two RemoteDestination objects are equal.
set_dest_rect
void set_dest_rect(const Rect & rect)Parameters
rect: const Rect &the rectangle for the destination
Returns:
voidSet the rectangle for the destination.
set_fit_type
void set_fit_type(const std::string & fit_type)Parameters
fit_type: const std::string &the fit type for the destination
Returns:
voidSet the fit type for the destination.
set_page_number
void set_page_number(int page_number)Parameters
page_number: intthe page number of the destination (page numbers start at 0)
Returns:
voidSet the page number of the destination (page numbers start at 0)
set_zoom
void set_zoom(double zoom)Parameters
zoom: doublethe zoom factor for the destination
Returns:
voidSet the zoom factor for the destination.
to_string
std::string to_string()Returns:
std::stringA string describing the page number, fit type, destination rectangle, and zoom factor.
Returns a string representation of this RemoteDestination.