fortplot_pdf_stream Module

Low-level PDF stream writing utilities



Functions

public function stream_pos0(unit) result(pos0)

Get current 0-based byte offset in a stream file.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: unit

Return Value integer(kind=int64)


Subroutines

public subroutine write_pdf_line(unit, line)

Write a single PDF line terminated by CRLF.

Arguments

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

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