fortplot_pdf_io Module

PDF file I/O operations Handles PDF document structure, writing, and file management



Subroutines

public subroutine write_pdf_file(this, filename, success)

Write PDF context to file

Arguments

Type IntentOptional Attributes Name
class(pdf_context_core), intent(inout) :: this
character(len=*), intent(in) :: filename
logical, intent(out), optional :: success

public subroutine create_pdf_document(unit, filename, ctx)

Create complete PDF document structure

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: unit
character(len=*), intent(in) :: filename
type(pdf_context_core), intent(inout) :: ctx

public subroutine write_string_to_unit(unit, str)

Write string to unit, handling long strings properly

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: unit
character(len=*), intent(in) :: str

public subroutine write_binary_to_unit(unit, str, nbytes)

Write binary string to unit using exact length (no trimming)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: unit
character(len=*), intent(in) :: str
integer, intent(in) :: nbytes