Hi,

On Wed, 2020-03-18 at 19:13 +0100, Santiago Timón wrote:
> I'm unsure if this would do the trick for the doctors, I will check
> with them. 
> 
> In case I would have to add the plain tests, I think an option would
> be concatenating them to the questionnaire PDF once it is generated.
> Would SDAPS still process correctly these once scanned? 

You would need to add dummy pages, then replace those. Otherwise the
page count will not match when you add the scans to the SDAPS project.

Benjamin

> El mié., 18 mar. 2020 a las 18:09, Benjamin Berg (<
> [email protected]>) escribió:
> > Hi,
> > 
> > On Wed, 2020-03-11 at 21:54 +0100, Santiago Timón wrote:
> > > How could I define such textbox? Looking at the documentation I
> > can't
> > > find how to reference the graphics or the 0pt border. 
> > 
> > Right, those feature are not really documented and not easily
> > accessible. It just happens to be there under the hood.
> > 
> > You could try something like the following:
> > 
> >     \newgeometry{left=0.5cm,right=0.5cm,top=0.5cm,bottom=0.5cm}%
> >     \ExplSyntaxOn
> >       \sdaps_context_begin:
> >       \sdaps_context_set:n {
> >         textbox = {
> >           linewidth=0pt,
> >           draw=none,
> >           centered_text={\includegraphics{GRAPHICS}}
> >         }
> >       }
> >       \textbox{1cm}{}
> >       \sdaps_context_end:
> >     \ExplSyntaxOff
> >     \restoregeometry
> >     \newpage
> > 
> > Note that this does insert a bit of a margin on top (i.e. the top
> > margin is effectively bigger than 5mm for the textbox). I am not
> > entirely sure why this happens, it may be related to the stuff that
> > ensure textboxes are spaced nicely with regard to text.
> > 
> > The other markings will be unaffected. SDAPS will create a textbox
> > (with 5mm a margin from the paper border in this case) and it will
> > then
> > overlay your graphic centred inside this textbox.
> > 
> > Benjamin
> > 
> > > Thanks again,
> > > 
> > > El mié., 11 mar. 2020 a las 21:32, Benjamin Berg (<
> > > [email protected]>) escribió:
> > > > Hi,
> > > > 
> > > > I thibk a texbox is good in general, but I do see there are
> > some
> > > > problems.
> > > > 
> > > > So, a few observations:
> > > > 
> > > > * the corner markers are not needed in principle if there is no
> > > > question (though no idea if one can get rid of them); sdaps
> > will
> > > > just warn (and probably sets the valid flag to 0) 
> > > >  * if you print duplex, you only need the barcodes on one side,
> > > > which saves space
> > > > * you could do a textbox over the full page with a 0pt border;
> > > > which sdaps would always see as checked and would export an
> > image
> > > > for (this requires some ugly placement logic to get rid of the
> > page
> > > > margins again)
> > > > * if you have a good cobtrol of the scan (i.e. correct page
> > count),
> > > > you could just add dummy pages and replace them later; sdaps
> > will
> > > > warn like hell about not findibg IDs, but the data will be
> > there
> > > > and you could extract the images without the help of sdaps
> > > > 
> > > > Not sure what the best option here is; but maybe one of the
> > above
> > > > points could help? I could provide sone more instructions as to
> > how
> > > > to implement each.
> > > > 
> > > > Benjamin
> > > > 
> > > > On Wednesday, 11 March 2020, Santiago Timón wrote:
> > > > > Hi Ferdinand,
> > > > > 
> > > > > Thank you for the answer, but I'm not sure how I could use
> > your
> > > > approach.
> > > > > Maybe a sample is more explicatory:
> > > > > [image: imagen.png]
> > > > > 
> > > > > To be able to fit the test, the figure is scaled to 80%, and
> > that
> > > > is a
> > > > > problem since we can't alter the test. So I would need to
> > have a
> > > > blank page
> > > > > without all the questionnaire stuff and put the test figure
> > in
> > > > it, with its
> > > > > original size.
> > > > > Is it possible?
> > > > > Thanks!
> > > > > 
> > > > > 
> > > > > El mié., 11 mar. 2020 a las 13:47, Ferdinand Schwenk (<
> > > > [email protected]>)
> > > > > escribió:
> > > > > 
> > > > > > Hi Santi,
> > > > > >
> > > > > > maybe a textbox (
> > > > https://sdaps.org/class-doc/sdapsclassic.html#\textbox)
> > > > > > is what you are looking for. The contents of such a box
> > will be
> > > > included in
> > > > > > the report as picture.
> > > > > >
> > > > > > Best regards
> > > > > > Ferdinand
> > > > > >
> > > > > > Am Mi., 11. März 2020 um 13:25 Uhr schrieb Santiago Timón <
> > > > > > [email protected]>:
> > > > > >
> > > > > >> Hi,
> > > > > >>
> > > > > >> Our questionnaire is used as a Case Report Form, gathering
> > > > cognitive
> > > > > >> tests among other things. Some tests, like the Trail
> > Making
> > > > Test
> > > > > >> <https://en.wikipedia.org/wiki/Trail_Making_Test>;;, are
> > handed
> > > > to the
> > > > > >> patient and should be scanned with the rest of the SDAPS
> > > > structure.
> > > > > >> Is there a way I can jump over SDAPS base margins and
> > lines?
> > > > Or adding
> > > > > >> extra pages? (I know that SDAPS expects a specific amount
> > of
> > > > pages when
> > > > > >> adding/recognizing).
> > > > > >>
> > > > > >> Thanks
> > > > > >> --
> > > > > >> Santi
> > > > > >>
> > > > > >
> > > > > 
> > > > > -- 
> > > > > Santi
> > > > >
> > > 
> > > 
> 
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to