fortplot_pdf_core Module

Core PDF types and basic operations Provides fundamental PDF context and stream management



Variables

Type Visibility Attributes Name Initial
real(kind=wp), public, parameter :: PDF_MARGIN = 50.0_wp
real(kind=wp), public, parameter :: PDF_TICK_SIZE = 5.0_wp
real(kind=wp), public, parameter :: PDF_TITLE_SIZE = 14.0_wp
real(kind=wp), public, parameter :: PDF_LABEL_SIZE = 12.0_wp
real(kind=wp), public, parameter :: PDF_TICK_LABEL_SIZE = 10.0_wp
real(kind=wp), public, parameter :: PDF_FONT_SIZE = 10.0_wp

Derived Types

type, public ::  pdf_font_t

Components

Type Visibility Attributes Name Initial
integer, public :: helvetica_obj = 5
integer, public :: symbol_obj = 6

Type-Bound Procedures

procedure, public :: get_helvetica_obj
procedure, public :: get_symbol_obj

type, public ::  pdf_context_core

Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: stream_data
real(kind=wp), public :: width
real(kind=wp), public :: height
real(kind=wp), public :: current_line_width = 1.0_wp
type(pdf_font_t), public :: fonts

Type-Bound Procedures

procedure, public :: set_color => set_pdf_color
procedure, public :: set_line_width => set_pdf_line_width

Functions

public function create_pdf_canvas_core(width, height) result(ctx)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: width
real(kind=wp), intent(in) :: height

Return Value type(pdf_context_core)


Subroutines

public subroutine initialize_pdf_stream(ctx)

Arguments

Type IntentOptional Attributes Name
type(pdf_context_core), intent(inout) :: ctx

public subroutine finalize_pdf_stream(ctx)

Arguments

Type IntentOptional Attributes Name
type(pdf_context_core), intent(inout) :: ctx