mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
..
This commit is contained in:
parent
8a9d3225e5
commit
793c781e2b
@ -237,8 +237,6 @@ void HTMLRenderer::pre_process(PDFDoc * doc)
|
||||
* determine scale factors
|
||||
*/
|
||||
{
|
||||
double zoom = 1.0;
|
||||
|
||||
vector<double> zoom_factors;
|
||||
|
||||
if(is_positive(param->zoom))
|
||||
@ -256,14 +254,7 @@ void HTMLRenderer::pre_process(PDFDoc * doc)
|
||||
zoom_factors.push_back((param->fit_height) / preprocessor.get_max_height());
|
||||
}
|
||||
|
||||
if(zoom_factors.empty())
|
||||
{
|
||||
zoom = 1.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
zoom = *min_element(zoom_factors.begin(), zoom_factors.end());
|
||||
}
|
||||
double zoom = (zoom_factors.empty() ? 1.0 : (*min_element(zoom_factors.begin(), zoom_factors.end())));
|
||||
|
||||
text_scale_factor1 = max<double>(zoom, param->font_size_multiplier);
|
||||
text_scale_factor2 = zoom / text_scale_factor1;
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* state.cc
|
||||
*
|
||||
* track current state
|
||||
* track PDF states
|
||||
*
|
||||
* Copyright (C) 2012,2013 Lu Wang <coolwanglu@gmail.com>
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user